DEV Community

Yuriy Arutyunyan
Yuriy Arutyunyan

Posted on

Selenium Web Driver running problem

Hello!
I am kinda new to selenium and having an issue rn i can't fix myself.

My Code:

from selenium import webdriver

# other chrome options
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')

driver = webdriver.Chrome(executable_path="C:/Users/arutyunyan/PycharmProjects/pythonProject2/chromedriver/chromedriver.exe",options=chrome_options)
Enter fullscreen mode Exit fullscreen mode

This is what i get:

The following error was encountered while trying to retrieve the URL: <a href="http://localhost:53069/session">http://localhost:53069/session</a>

Cache Access Denied.

Sorry, you are not currently allowed to request http://localhost:53069/session from this cache until you have authenticated yourself
Enter fullscreen mode Exit fullscreen mode

My network connection is behind proxy, but i am not sure it has to be the problem since i am connecting to localhost

What might be the problem?

Oldest comments (0)