Selenium RemoteWebdriver边缘不工作
我有自己的selenium网格和不同的windows机器。其中之一是Windows 10计算机。Chrome和Firefox都可以运行,但我无法运行Edge 我的例外:Selenium RemoteWebdriver边缘不工作,selenium,grails,selenium-grid,Selenium,Grails,Selenium Grid,我有自己的selenium网格和不同的windows机器。其中之一是Windows 10计算机。Chrome和Firefox都可以运行,但我无法运行Edge 我的例外: geb.driver.DriverCreationException: failed to create driver from callback 'script1460298173607577952326$_run_closure3@6256ac4f' at geb.driver.CallbackDriverFactory.g
geb.driver.DriverCreationException: failed to create driver from callback 'script1460298173607577952326$_run_closure3@6256ac4f'
at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy:85)
at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy)
at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:32)
at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:84)
at geb.Configuration.createDriver(Configuration.groovy:382)
at geb.Configuration.getDriver(Configuration.groovy:371)
at geb.Browser.getDriver(Browser.groovy:108)
at geb.spock.GebSpec.propertyMissing(GebSpec.groovy:60)
at specs.LomnidoBaseSpec.setupSpec(LomnidoBaseSpec.groovy:28)
Caused by: org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities [{platform=WIN10, browserName=MicrosoftEdge, version=}]
Command duration or timeout: 382 milliseconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'peter-laptop', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-85-generic', java.version: '1.8.0_45'
我已在windows计算机上安装了Microsoft WebDriver
我在gebconfig.groovy中的代码
driver = {
DesiredCapabilities capabilities = DesiredCapabilities.edge()
capabilities.setPlatform(Platform.WIN10)
new RemoteWebDriver(
new URL("http://localhost:4444/wd/hub"), capabilities
)
}
我错过了什么?彼得
Error forwarding the new session cannot find : Capabilities [{platform=WIN10, browserName=MicrosoftEdge, version=}]
这是Grid告诉您它没有找到任何具有名为“MicrosoftEdge”且其平台设置为“WIN10”的浏览器的节点的方式
您需要返回并再次查看如何生成节点,看看是否需要对其进行一些调整
要获得关于如何设置网格的一般概述,您可以查看我的博客帖子。Peter
Error forwarding the new session cannot find : Capabilities [{platform=WIN10, browserName=MicrosoftEdge, version=}]
这是Grid告诉您它没有找到任何具有名为“MicrosoftEdge”且其平台设置为“WIN10”的浏览器的节点的方式
您需要返回并再次查看如何生成节点,看看是否需要对其进行一些调整
要获得有关如何设置网格的一般概述,您可以查看我的博客文章。我找到了解决方案
在windows计算机上,我必须在启动节点时添加以下参数:
Dwebdriver.edge.driver=“C:/selenium/MicrosoftWebDriver.exe”-browser browserName=“microsofedge”,platform=WIN10我找到了解决方案
在windows计算机上,我必须在启动节点时添加以下参数:
Dwebdriver.edge.driver=“C:/selenium/MicrosoftWebDriver.exe”-browser browserName=“MicrosoftEdge”,platform=WIN10您好,谢谢您的回答,但您的博客并没有帮助解决我的问题。我已经完成了所有描述的将边缘添加到节点的操作,但是边缘浏览器没有注册到我的丈夫,我需要阅读该博客文章。我试图在grails项目中使用selenium独立服务器,但在生产中失败了。来自IntelliJ的作品,希望这可以解决我的问题。嗨,谢谢你的回答,但是你的博客没有帮助解决我的问题。我已经完成了所有描述的将边缘添加到节点的操作,但是边缘浏览器没有注册到我的丈夫,我需要阅读该博客文章。我试图在grails项目中使用selenium独立服务器,但在生产中失败了。IntelliJ的作品,希望这能解决我的问题。