3

Currently my py.test + splinter + pytest-splinter tests load a Firefox welcome screen when browser instance is created:

enter image description here

How one can get rid of this and have about:blank as a starting page as this screen is wasting some time and bandwidth on each test run?

Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435

1 Answers1

3

Set startup.homepage_welcome_url.additional property to '':

In [1]: from selenium import webdriver

In [2]: profile = webdriver.FirefoxProfile()

In [3]: profile.set_preference('startup.homepage_welcome_url.additional', '')

In [4]: browser = webdriver.Firefox(profile)
drets
  • 2,583
  • 2
  • 24
  • 38