我有用vb.net和selenium编写的测试。我配置了selenium网格所以我可以使用selenium网格一起运行几个dll。使用以下内容不会使会话运行。
using selenium.Setup("localhost", 4444, "*chrome C:\Program Files (x86)\Mozilla Firefox\firefox.exe", My.Settings.URL)
It is throwing the following error (TestFixtureSetUp):
SetUp : Selenium.SeleniumException : ERROR: Could not retrieve a new session
我有3个可用的RC,包括firefox,chrome和iexplore环境。使用iexplore工作正常,它执行测试很好,但使用Firefox时,它不会检索会话。请指导我在这里做错了。
编辑1:使用selenium-grid-1.0.8版本
答案 0 :(得分:0)
通过将seleniumProtocol = Selenium参数传递给命令
修复了makine rc使用网格的上述问题 java -jar selenium-server-standalone-2.25.0.jar -role rc -hubHost localhost -browser browserName=*firefox,maxInstances=3,platform=WINDOWS,seleniumProtocol=Selenium
在测试中使用以下
selenium.Setup("localhost", 4444, "*firefox", URL)
希望它会帮助某人