Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 在chrome 65中禁用信息栏_Python 2.7_Selenium Webdriver - Fatal编程技术网

Python 2.7 在chrome 65中禁用信息栏

Python 2.7 在chrome 65中禁用信息栏,python-2.7,selenium-webdriver,Python 2.7,Selenium Webdriver,我试着运行一个自动化脚本,当我运行时,屏幕顶部出现了一个黄色条。“CHROME由自动化测试软件控制” 我的脚本停止运行。 然后,我将chrome驱动程序更新为2.36,现在脚本正在运行,但工具栏仍然可见 chromeOptions.add_experimental_option("prefs",prefs) chromeOptions.add_argument('--test-type') chromeOptions.add_argument("--disable-infobars") dri

我试着运行一个自动化脚本,当我运行时,屏幕顶部出现了一个黄色条。“CHROME由自动化测试软件控制”

我的脚本停止运行。 然后,我将chrome驱动程序更新为2.36,现在脚本正在运行,但工具栏仍然可见

chromeOptions.add_experimental_option("prefs",prefs)
chromeOptions.add_argument('--test-type')
chromeOptions.add_argument("--disable-infobars")
driver = webdriver.Chrome(driver_path, chrome_options=chromeOptions)

找到了解决办法。我下载了chrome驱动程序2.37并禁用了chrome的自动更新。已从系统中卸载chrome65。并重新安装了较低版本。然后我的脚本开始工作。

所以我卸载了chrome 65,安装了chrome 63,并关闭了自动更新。现在一切正常