gpt4 book ai didi

windows - Selenium:无法打开连接:转发新 session 时出错,无法找到 Internet Explorer 的功能

转载 作者:行者123 更新时间:2023-11-28 21:30:44 26 4
gpt4 key购买 nike

我正在尝试在 Internet Explorer 上运行 Behat 测试。

在我的 Windows 7 虚拟机中启动

java -jar selenium-server-standalone-2.41.0.jar -role node -hub  
http://myhostcomputer:4444/grid/register -browser browserName=ie
-Dwebdriver.ie.driver=IEDriverServer.exe

成功启动并注册到我的 Linux 主机:

16:07:26.582 INFO - Started org.openqa.jetty.jetty.Server@104c47b5
16:07:26.598 INFO - using the json request : {"class":"org.openqa.grid.common.Re
gistrationRequest","capabilities":[{"seleniumProtocol":"WebDriver","platform":"V
ISTA","browserName":"ie"}],"configuration":{"port":5555,"register":true,"host":"
192.168.0.188","proxy":"org.openqa.grid.selenium.proxy.DefaultRemoteProxy","brow
ser":"browserName=ie","maxSession":5,"role":"node","hubHost":"x.orange.imi.local
","registerCycle":5000,"hub":"http://myhostcomputer:4444/grid/register","Dwe
bdriver.ie.driver=IEDriverServer.exe":"","hubPort":4444,"url":"http://192.168.0.
188:5555","remoteHost":"http://192.168.0.188:5555"}}
16:07:26.598 INFO - Starting auto register thread. Will try to register every 50
00 ms.
16:07:26.598 INFO - Registering the node to hub :http://x.orange.imi.local:4444/
grid/register

我有java -jar selenium-server-standalone-2.41.0.jar -role hubmyhostcomputer 上运行.当节点连接时我收到消息:

org.openqa.grid.internal.BaseRemoteProxy <init>

开始时behat我明白了

 Could not open connection: Error forwarding the new session cannot find :
Capabilities [{platform=VISTA, browserVersion=11, ignoreZoomSetting=false,
browserName=ie, deviceType=pc, name=Behat Test, selenium-version=2.41.0,
browser=ie, deviceOrientation=portrait, version=11, max-duration=300}]

这里有什么问题?我可以列出 Selenium 服务器中可用的功能吗?我已经尝试将所有 ie 替换为 iexplore

最佳答案

-browser 允许的参数是 browserName={android, chrome, firefox, htmlunit, internet explorer, iphone, opera}

所以把它改成internet explorer

引用 - https://github.com/SeleniumHQ/selenium/wiki/Grid2

关于windows - Selenium:无法打开连接:转发新 session 时出错,无法找到 Internet Explorer 的功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23247826/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com