运行Selenium脚本时出现以下错误。最近我确实设置了Selenium网格并在此之后开始注意到。我停止了Hub并重新启动了系统,但仍然遇到了同样的问题。还尝试了最新的Chrome和IE驱动程序。
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 = ''
答案 0 :(得分:1)
将驱动程序可执行文件从网络驱动程序移动到本地驱动器后,此问题现已解决。我想我们公司的一些政策已经改变,所以之前停止了工作。