Python Selenium:摆脱Firefox首次运行屏幕

Python Selenium:摆脱Firefox首次运行屏幕,python,firefox,selenium,pytest,splinter,Python,Firefox,Selenium,Pytest,Splinter,当前,my py.test+splinter+pytest splinter测试在创建浏览器实例时加载Firefox欢迎屏幕: 如何摆脱此问题并将about:blank作为起始页,因为此屏幕在每次测试运行时都会浪费一些时间和带宽?设置启动。主页\u欢迎\u url。添加'属性: [1]中的:来自selenium导入webdriver 在[2]中:profile=webdriver.FirefoxProfile() [3]中:profile.set_首选项('startup.homepage_w

当前,my py.test+splinter+pytest splinter测试在创建浏览器实例时加载Firefox欢迎屏幕:


如何摆脱此问题并将
about:blank
作为起始页,因为此屏幕在每次测试运行时都会浪费一些时间和带宽?

设置
启动。主页\u欢迎\u url。添加
'
属性:

[1]中的
:来自selenium导入webdriver
在[2]中:profile=webdriver.FirefoxProfile()
[3]中:profile.set_首选项('startup.homepage_welcome_url.additional','')
在[4]中:browser=webdriver.Firefox(配置文件)