运行 Selenium 脚本时出现以下错误。最近我确实设置了 Selenium 网格并在此之后开始注意到。我停止了集线器并重新启动了系统,但仍然遇到同样的问题。还尝试了最新的 Chrome 和 IE 驱动程序。
铬错误:
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 = ''