WebDriver Manager 下载必要的驱动程序update
。不确定你是从 docker 容器、vagrant VM 还是在 VPN 中运行它。
它从以下来源下载,屏幕截图中的 ipaddress 表明您在连接到https://github.com/mozilla
. 在 ping github 时,我看到相同的 IP。
来源:来自webdriver-manager 配置
"cdnUrls": {
"selenium": "https://selenium-release.storage.googleapis.com/",
"chromedriver": "https://chromedriver.storage.googleapis.com/",
"geckodriver": "https://github.com/mozilla/geckodriver/releases/download/",
"iedriver": "https://selenium-release.storage.googleapis.com/",
"androidsdk": "http://dl.google.com/android/"
}
您能否按如下所示 ping 并查看您是否能够从您正在执行的位置手动访问上述来源(Chrome 和 seleniumServer 和 Gecko)webdriver-manager update
C:\Users\<<>>\WebstormProjects\demo>ping github.com
Pinging github.com [192.30.253.112] with 32 bytes of data:
Reply from 192.30.253.112: bytes=32 time=207ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47
Reply from 192.30.253.112: bytes=32 time=205ms TTL=47
Ping statistics for 192.30.253.112:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 205ms, Maximum = 207ms, Average = 205ms