简体   繁体   English

将最新的 Microsoft Edge (Win10) 浏览器添加到 Selenium 网格

[英]Add latest Microsoft Edge (Win10) browser to Selenium Grid

Tried by adding the below code.通过添加以下代码进行尝试。

"capabilities": [
        {
            "browserName": "MicrosoftEdge",
            "platform": "WIN10",
            "maxInstances": 1
        },
]

and passed it to command line并将其传递给命令行

start java -Dwebdriver.edge.driver="../../Resources/Drivers/msedgedriver.exe" -jar "%SELSERV%" -role node -nodeConfig ..\ConfigFiles\NodeConfig.json

I am getting the microsoft edge legacy我得到了 microsoft edge legacy

I need the latest microsoft edge (Based on chromium) in selenium grid.我需要 selenium 网格中的最新微软边缘(基于铬)。

Latest Edge browser being chromium based, try using the below node configurations:最新的 Edge 浏览器基于 chromium,尝试使用以下节点配置:

"capabilities": [
        {
            "browserName": "Chrome",
            "platform": "WIN10",
            "maxInstances": 1
        },
]

And then execute the below command:然后执行以下命令:

java -Dwebdriver.chrome.driver="../../Resources/Drivers/msedgedriver.exe" -jar "%SELSERV%" -role node -nodeConfig ..\ConfigFiles\NodeConfig.json

Notice the webdriver.chrome.driver property being set to msedgedriver.exe file.请注意webdriver.chrome.driver属性设置为 msedgedriver.exe 文件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 调用 WIN10 ChromeOption 时 Selenium Grid Hub/崩溃 - Selenium Grid Hub/Crash when invoking WIN10 ChromeOption 在Microsoft Edge浏览器中使用Selenium网格的问题 - Issue using Selenium grid with Microsoft Edge browser 适用于最新 selenium webdriver 的兼容 Microsoft EDGE 版本 - Compatible Microsoft EDGE version for latest selenium webdriver 设置硒网格以使用Microsoft Edge - Setting up selenium grid to use Microsoft edge 在Windows 10 VM上使用Microsoft Edge Web浏览器启动新的remoteWebDriver会话时,Selenium挂起 - Selenium hangs when starting new remoteWebDriver session using Microsoft Edge web browser on Windows 10 VM 使用 selenium 启动 Microsoft Edge Chromium 浏览器 - Launch Microsoft Edge Chromium browser using selenium 是否有适用于 Microsoft Edge 浏览器的 Selenium WebDriver? - Is there a Selenium WebDriver available for the Microsoft Edge browser? 无法在 Selenium 3 中启动 Microsoft Edge 浏览器 - Not able to launch Microsoft Edge Browser in Selenium 3 使用“new EdgeOptions()”优于“DesiredCapabilities.edge()”错误通过Jenkins和Selenium启动远程Microsoft Edge浏览器 - Using `new EdgeOptions()` is preferred to `DesiredCapabilities.edge()` error launching Remote Microsoft Edge browser through Jenkins and Selenium 在 Selenium 4 中为 Microsoft Edge 浏览器使用 Behat 和 Mink Selenium2 驱动程序运行测试 - Run tests using Behat and Mink Selenium2 driver for Microsoft Edge browser in Selenium 4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM