繁体   English   中英

Chrome Webdriver - 系统策略已拒绝访问请求的 URL

[英]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 时启动浏览上下文此错误消息...

Access denied, your system policy has denied access to the requested URL. For assistance contact your network support team

...可能由于很多原因而发生。

一些已知的原因是:

  • ChromeDriver使用端口9515 ,该端口可能被其他一些服务阻止。
  • 您的系统安装了过滤此流量或使用网络 web 过滤的安全软件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM