Microsoft Edge浏览器未在硒网格上打开

时间:2018-06-28 12:34:17

标签: selenium microsoft-edge selenium-grid selenium-edgedriver

我需要通过硒网格启动Microsoft Edge浏览器,但是每当我尝试启动下面的浏览器时,都会引发错误并且浏览器未启动

org.openqa.selenium.SessionNotCreatedException: Unable to create new service: EdgeDriverService Build info: version: '3.13.0', revision: '2f0d292', time: '2018-06-25T15:32:19.891Z' System info: host: 'ERD-L046', ip: '192.168.2.46', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' Driver info: driver.version: unknown Command duration or timeout: 74 milliseconds

要配置网格设置,我使用了以下代码: 要设置HUB:

java -jar selenium-server-standalone-3.13.0.jar -role hub

要设置节点:

java -Dwebdriver.edge.driver="D:/Softwares/Selenium/IEDriver/MicrosoftWebDriver.exe" -jar selenium-server-standalone-3.13.0.jar -port 5567 -role node -hub http://192.168.2.46:4444/grid/register -browser "browserName=MicrosoftEdge, maxInstances=5"

要启动浏览器,我使用了以下代码:

EdgeOptions options = new EdgeOptions();
    options.setCapability("platform", "Any");
    options.setCapability("browserName", "MicrosoftEdge");
    options.setCapability("ignoreZoomSetting", true);
    options.setCapability("browserVersion", "41.16299.15.0");

    System.setProperty("webdriver.edge.driver", "D:/Softwares/Selenium/Drivers/IEDriver/MicrosoftWebDriver.exe");
    driver = new RemoteWebDriver(new URL("http://192.168.2.46:5567/wd/hub"), options);

操作系统:Windows 10专业版[版本1709 16299.125]

浏览器版本:41.16299.15.0

硒版本:3.13.0

Selenium服务器独立版:3.13.0

Microsoft WebDriver版本:版本16299 |版本:5.16299 |支持的边缘版本:16.16299

请问有人对此有所了解。

1 个答案:

答案 0 :(得分:0)

请重新检查驱动程序调用路径调用,在提到的路径中包括文件夹IEDriver。您也可以检查正斜线。