Starting just last night, the FirefoxDriver has been always opening on this page: https://www.mozilla.org/en-US/firefox/42.0/firstrun/learnmore/
. I have tried changing the default profile settings and have not had any success.
The following question, http://stackoverflow.com/questions/33937067/firefox-webdriver-opens-first-run-page-all-the-time
, is similar, but I do not see where to implement the four lines of code, and my personal attempts of throwing it into my scripts have proved futile.
This problem started absolutely out of the blue last night. I have presentations to do today and I can't get any of my scripts to work.
Instantiating my WebDriver instance like so will cause a NoSuchMethodError:
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("browser.startup.homepage", "about:blank");
profile.setPreference("startup.homepage_welcome_url", "about:blank");
profile.setPreference("startup.homepage_welcome_url.additional", "about:blank");
driver = new FirefoxDriver(profile);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
But getting rid of profile
in FirefoxDriver
brings it back to the firstrun page mentioned above.