0 votes
1 view
in DevOps and Agile by (20k points)

How to disable this "first run" page once and for all for FF?

When FF driver is created, it opens tab with - https://www.mozilla.org/en-US/firefox/42.0/firstrun/learnmore/ and additional tab with target page.

1 Answer

0 votes
by (28.4k points)

This should work:

FirefoxProfile fp = new FirefoxProfile();

fp.setPreference("browser.startup.homepage", "about:blank");

fp.setPreference("startup.homepage_welcome_url", "about:blank");

fp.setPreference("startup.homepage_welcome_url.additional", "about:blank");

Welcome to Intellipaat Community. Get your technical queries answered by top developers !