【问题标题】:Does a new path need specified for Opera using RemoteWebDriver 2.35.0 vs 2.34.0?是否需要使用 RemoteWebDriver 2.35.0 与 2.34.0 为 Opera 指定新路径?
【发布时间】:2013-08-14 13:56:56
【问题描述】:

我正在尝试从 2.34.0 升级到 selenium-server-standalone-2.35.0。

我的网格设置: 两种情况下的集线器都保持在新的 2.35 版本: java -jar selenium-server-standalone-2.35.0.jar -role hub

节点: java -jar selenium-server-standalone-2.35.0.jar -role node -nodeConfig localNodeConfig.json

json 文件包含:

{
    "capabilities": [
    {
      "browserName": "opera",
      "platform": "VISTA",
      "maxInstances": 1,
    }
  ],
  "configuration": {
    "maxSession": 1,
    "port": 4447,
    "host": ip,
    "register": true,
    "registerCycle": 5000,
    "hubHost": localhost
  }
}

问题是当我运行我的测试时(通过:remote_webdriver = webdriver.Remote( command_executor='http://localhost:4444/wd/hub', desired_capabilities={'browserName' : 'opera'} ) 创建新驱动程序我得到了其他浏览器。测试运行得很好,但在 chrome 或 Internet Explorer 中运行。

如果我使用 2.34.0 和相同的 config.json 等运行,那么我会按预期打开歌剧 (12.16)。

我正在设置环境变量: SET OPERA_PATH=%ProgramFiles(x86)%\Opera\Opera.exe 这是我的歌剧所在的地方,而不是其他浏览器!

欢迎任何帮助。

编辑:在节点命令窗口中我可以看到:

15:01:20.870 信息 - 为 Capabilities [{browserName=opera}] 创建一个新会话
启动 InternetExplorerDriver 服务器(32 位)
2.35.1.0
显示我正在请求正确的浏览器,但由于某种原因没有得到它。

【问题讨论】:

    标签: python webdriver remotewebdriver


    【解决方案1】:

    这是 Selenium 2.35 https://code.google.com/p/selenium/issues/detail?id=6094 的一个已知问题 请等待下一个版本。

    【讨论】:

      猜你喜欢
      • 2015-03-11
      • 1970-01-01
      • 2013-07-23
      • 2023-04-05
      • 1970-01-01
      • 2021-05-07
      • 2023-01-07
      • 2013-12-05
      • 2016-11-08
      相关资源
      最近更新 更多