Starting just last night, FirefoxDriver always opened on this page: https://www.mozilla.org/en-US/firefox/42.0/firstrun/learnmore/ . I tried changing the default profile settings and had no success.
The next question, http://stackoverflow.com/questions/33937067/firefox-webdriver-opens-first-run-page-all-the-time , is similar, but I donβt see where to implement the four lines of code, and my personal attempts throwing it into my scripts turned out to be useless.
This problem started quite unexpectedly last night. Today I have presentations, and I can not get any of my scripts to work.
Running an instance of my WebDriver instance, for example, raises 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 the profile in FirefoxDriver returns it to the first page above.
source share