在Selenium Grid中运行robotframework testscripts时出现连接拒绝错误(Getting Connection refused error when run robot

编程入门 行业动态 更新时间:2024-10-28 08:22:45
在Selenium Grid中运行robotframework testscripts时出现连接拒绝错误(Getting Connection refused error when run robotframework testscripts in Selenium Grid)

继续前一个帖子。 ( WebDriverException:消息:握手中缺少'marionetteProtocol'字段 )

我已将浏览器版本升级到FF 48.浏览器已启动但无法导航到我指定的网站。

WebDriverException:消息:连接被拒绝Stacktrace:在java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)的java.net.PlainSocketImpl.smplConnect(PlainSocketImpl.java: - 2)处于java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl。 java:200)at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)at java.net.SocksSocketImpl.connect

更新的规格:

火狐(48.0) Selenium2Library 硒的服务器独立,2.53.1.jar geckodriver-v0.9.0

有人设法解决了这个问题吗?

Continue from previous thread. (WebDriverException: Message: Missing 'marionetteProtocol' field in handshake)

I've upgraded my browser version to FF 48. The browser launched but unable to navigate to the website that I specify.

WebDriverException: Message: Connection refused Stacktrace: at java.net.PlainSocketImpl.socketConnect (PlainSocketImpl.java:-2) at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress (AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect

Updated specs:

Firefox (48.0) Selenium2Library selenium-server-standalone-2.53.1.jar geckodriver-v0.9.0

Does anybody managed to solve the issue?

最满意答案

我终于设法找到了我的硒设置的解决方案。谢谢你。 http://learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

我将我的FF降级到v45.0.2以使其与selenium-server-standalone-2.53.1.jar一起使用并安装了以下规范:

selenium = v2.44.0 robotframework-selenium2library = v1.8.0 robotframework = v3.0 robotframework-seleniumlibrary = v2.9.2

我遇到的问题也是由于dist包中存在硒3蛋(/usr/local/lib/python2.7/dist-packages)。 因此,在取出鸡蛋后,硒工作并按预期启动浏览器。

I finally managed to find the solution for my selenium setup.Thanks to this guy.http://learn-automation.com/use-firefox-selenium-using-geckodriver-selenium-3/

I downgraded my FF to v45.0.2 to make it work with selenium-server-standalone-2.53.1.jar and installed the following specs :

selenium = v2.44.0 robotframework-selenium2library = v1.8.0 robotframework = v3.0 robotframework-seleniumlibrary = v2.9.2

The issue that I faced also due to the existence of selenium 3 eggs in the dist packages (/usr/local/lib/python2.7/dist-packages). So after removing the egg, selenium works and browser launched as expected.

更多推荐

本文发布于:2023-08-05 04:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428496.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   robotframework   testscripts   Selenium   Grid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!