【问题标题】:Running tests using firefox using selenium grid使用 selenium 网格使用 firefox 运行测试
【发布时间】:2012-10-09 12:39:53
【问题描述】:

我有用 vb.net 和 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 版本

【问题讨论】:

    标签: vb.net testing selenium-rc selenium-grid


    【解决方案1】:

    通过将 seleniumProtocol=Selenium 参数传递给命令,修复了上述 makine rc work with grid 的问题

     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)
    

    希望对某人有所帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-05
      • 2019-01-13
      • 2012-11-21
      • 2016-09-25
      • 2013-02-20
      • 2017-02-10
      • 1970-01-01
      相关资源
      最近更新 更多