-1

I'm trying to figure out why I'm getting this error message. I'm running the webdriver.Chrome() with selenium in a Windows environment.

When I run:

driver.get("http://www.google.com") 

Or any url for that matter, python returns an HTML doc to the terminal saying;

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

I'm not not sure what the issue so I need to figure out the error so I can send it to my IT. This is on a company managed device.

Rufom1
  • 89
  • 9
  • 1
    since that's going to the terminal, it's probably access to localhost that's being prevented. – pcalkins Nov 18 '21 at 20:38
  • I think I figured it out, my python directory is in a network drive. If I run it on a local drive it seems to work. So in order to get this to run out of a network drive it would have to have access to localhost, do you know how I would do that? – Rufom1 Nov 18 '21 at 20:48
  • ahh... so when you're running from the network, "localhost" will be that machine's localhost... not yours. – pcalkins Nov 18 '21 at 21:08

2 Answers2

0

Thanks to pcalkins I figured out it was a problem with the network drive. I ran the code in a python environment hosted on a network drive. When I changed it to run on my local machine it worked fine.

Rufom1
  • 89
  • 9
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 19 '21 at 01:21
0

While starting a Selenium driven ChromeDriver initiated Browsing Context this error message...

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

...can occur due to a lot of reasons.

Some of the known reasons are:

  • ChromeDriver uses port 9515 which may be blocked by some other services.
  • Your system have security software installed that is filtering this traffic or using network web filtering.
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352