Sup*_*Guy 5 selenium-grid phantomjs selenium-webdriver
我知道ghostdriver wiki上有关于如何将它附加到selenium网格的文档.对于那些不知道的人,你可以在这里找到它
我已经编译了两次特殊的phantomjs,尝试将它连接到本地的selenium服务器,并使用Selenium 2.24和2.25版本进行远程无效.它就像你期望的那样在本地启动Ghostdriver,但肯定没有注册.
我尝试了ip/localhost:4444和ip/localhost:4444/grid/register但没有结果.我也想也许它只是没有出现在网格控制台上并试图对它进行测试,但是没有说明没有任何东西填充网格.
我在CentOS 6和Ubuntu 12.04都尝试过这个,没有运气.
我没有想法.还有其他人有这样的问题吗?
我有完全相同的问题,并使用最新版本的selenium-grid修复它.
好的网站:https://code.google.com/p/selenium/wiki/Grid2(这不再是http://selenium-grid.seleniumhq.org/).
这里的步骤(版本2.31.0):
下载selenium-server:
wget https://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar
启动selenium网格服务器:
java -jar selenium-server-standalone-2.31.0.jar -role hub
在新终端中,启动GhostDriver:
phantomjs --webdriver=5555 --webdriver-selenium-grid-hub=http://localhost:4444
检查可用的遥控器http://localhost:4444/grid/console.
你应该看到类似的东西:
listening on http://127.0.0.1:5555 test session time out after 300 sec. Supports up to 1 concurrent tests from: phantomjs
我在CentOS 6.3上测试了这个命令,希望它适合你!
| 归档时间: |
|
| 查看次数: |
1740 次 |
| 最近记录: |