[英]Selenium Webdriver can't access a website (The requested URL was rejected)
[英]Chrome Webdriver - System Policy has denied access to the requested URL
我试图弄清楚为什么我会收到此错误消息。 我在 Windows 环境中运行带有 selenium 的 webdriver.Chrome()。
当我运行时:
driver.get("http://www.google.com")
或任何 url 就此而言, python 将 HTML 文档返回给终端说;
Access denied, your system policy has denied access to the requested URL. For assistance contact your network support team
我不确定是什么问题,所以我需要找出错误,以便将其发送给我的 IT。 这是在公司管理的设备上。
感谢 pcalkins,我发现这是网络驱动器的问题。 我在托管在网络驱动器上的 python 环境中运行代码。 当我将其更改为在本地计算机上运行时,它运行良好。
在启动Selenium驱动的ChromeDriver 时启动google-chrome浏览上下文此错误消息...
Access denied, your system policy has denied access to the requested URL. For assistance contact your network support team
...可能由于很多原因而发生。
一些已知的原因是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.