CreatePlatformSocket()返回错误:提供了无效的参数. (0x27t6)端口不可用.在Selenium Webdriver中退出... [英] CreatePlatformSocket() returned an error: An invalid argument was supplied. (0x27t6) Port not available. Exiting... in Selenium Webdriver

查看:107
本文介绍了CreatePlatformSocket()返回错误:提供了无效的参数. (0x27t6)端口不可用.在Selenium Webdriver中退出...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Selenium脚本时出现以下错误.最近,我确实设置了Selenium网格并在此之后开始注意到.我停止了集线器并重新启动了系统,但仍然遇到相同的问题.还尝试使用最新的Chrome和IE驱动程序.

I am getting the below errors when running Selenium script. Recently I did setup Selenium grid and started noticing after that. I stopped the Hub and restarted the system also but still having same issue. Also tried with latest Chrome and IE Drivers.

Chrome错误:

Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b3704b) on port 11055
Only local connections are allowed.
[0.147][SEVERE]: CreatePlatformSocket() returned an error: An invalid argument was supplied. (0x2726)
[0.147][SEVERE]: CreatePlatformSocket() returned an error: An invalid argument was supplied. (0x27t6) Port not available. Exiting...

IE错误:

Failed to start the server with: port = '2305', host = '', log level = '', log file = '', whitelisted ips = ''

推荐答案

将驱动程序可执行文件从网络驱动器移至本地驱动器后,现在已解决此问题.我想我们公司的一些政策已经改变,因此以前就停止工作了.

This issue is resolved now after I moved the driver executables from network driver to local drive. I guess some policies changed in our company so stopped working before.

这篇关于CreatePlatformSocket()返回错误:提供了无效的参数. (0x27t6)端口不可用.在Selenium Webdriver中退出...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆