Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.4k points)

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

When FF driver is created, it opens tab with - and additional tab with target page.

1 Answer

0 votes
by (27.5k 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");

Browse Categories