Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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");

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

28.4k questions

29.7k answers


94.2k users

Browse Categories