【问题标题】:Disabling infobar in chrome 65在 chrome 65 中禁用信息栏
【发布时间】:2018-03-16 07:00:15
【问题描述】:

我试图运行自动化脚本,一旦我运行,屏幕顶部出现一个黄色条。“CHROME 由自动化测试软件控制” enter image description here

我的脚本停止运行。 然后我将 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 65 并安装了 63 并关闭了自动更新。现在一切正常

标签: python-2.7 selenium-webdriver


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2014-12-10
    • 2014-05-24
    • 2019-10-19
    • 2019-12-25
    • 2019-06-13
    • 1970-01-01
    • 2018-09-01
    • 1970-01-01
    • 2019-12-13
    相关资源
    最近更新 更多