Everything worked fine when I last ran my script (a couple of months ago) but now I've tried to run it again I'm getting this error message.
The only solution I can find so far is to check localhost is in the etc/hosts file (link below). I've checked and mine is. I also tried updating Chrome and Chromedriver but no change. The location of my chromedriver.exe
file has not changed since I last ran it.
Are there any other things I can try?
The below code is where the issue lies, again nothing's changed - my Chromedriver file has always been in the Temp folder
def visit_bbc():
url = "https://bbc.co.uk/"
browser = webdriver.Chrome('C:\\Users\\User1\\AppData\\Local\\Temp\\chromedriver.exe')
browser.get(url)
browser.maximize_window()```