【发布时间】: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