首页 > 解决方案 > 如何使用 Selenium 使用 ChromeDriver 运行 Chrome Beta 版?

问题描述

我正在尝试使用 selenium Web-driver 运行 chrome beta 版本。当我运行测试用例时,我在控制台上收到以下错误,请参见图片:

点击这里查看异常

我在节点配置文件中添加了以下几行:

    {
"capabilities": [

    {
        "platform": "WINDOWS",
        "browserName": "chrome",
        "webdriver.chrome.driver":"drive:\selenium\chromedriver.exe",
        "chromeOptions": "drive:\Program Files (x86)\Google\Chrome Beta\Application\chrome.exe",

    }

]  

我正在使用以下设置:

Selenium=2.53
chrome Web-driver= 80_0_3987_16
Google chrome= 80.0.3987.66 (Official Build) beta (64-bit)

我们有从 GO cicd 服务器执行的集线器和节点设置和自动化测试套件。任何帮助将不胜感激,谢谢

标签: seleniumgoogle-chromeselenium-webdriverselenium-chromedriverchrome-options

解决方案


这对我有用

chrome_options.binary_location = "C:/Program Files/Google/Chrome Beta/Application/chrome.exe"

推荐阅读