const string extension1 = @"C:\user_agent_switcher_and_manager-0.3.4-an+fx.xpi";
FirefoxOptions options = new FirefoxOptions();
FirefoxProfile profile = new FirefoxProfile(); profile.AcceptUntrustedCertificates = true; profile.AddExtension(extension1);
options.Profile = profile;
using (IWebDriver driver = new FirefoxDriver(options)) { //var ext = new FirefoxExtension("C:\\user_agent_switcher_and_manager-0.3.4-an+fx.xpi"); //ext.Install(profile.ProfileDirectory); WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30)); driver.Navigate().GoToUrl("https://www.google.com/ncr"); Console.ReadKey(); driver.Quit(); }--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2ab00220-0072-4f52-9560-2fa349f17c0d%40googlegroups.com.
OpenQA.Selenium.WebDriverException: 'Cannot find a file named 'C:\Users\Yasir\source\repos\selenium.net\selenium.net\bin\Debug\webdriver.json' or an embedded resource with the id 'WebDriver.FirefoxPreferences'.'