gpt4 book ai didi

selenium-webdriver - 还有其他人在使用 Selenium Grid 注册 Ghostdriver 时遇到问题吗?

转载 作者:行者123 更新时间:2023-12-04 18:46:19 24 4
gpt4 key购买 nike

我知道 ghostdriver wiki 上有关于如何将其附加到 Selenium 网格的文档。不知道的可以找here

我已经编译了两次特殊的 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 服务器:

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

查看可用的 Remote http://localhost:4444/grid/console .

你应该看到类似的东西:

听 http://127.0.0.1:5555
300 秒后测试 session 超时。
最多支持 1 个并发测试:
幻象

我在 CentOS 6.3 上测试这个命令,希望对你有用!

关于selenium-webdriver - 还有其他人在使用 Selenium Grid 注册 Ghostdriver 时遇到问题吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13713913/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com