Selenium-Webscraping-Example icon indicating copy to clipboard operation
Selenium-Webscraping-Example copied to clipboard

Help wanted: error in connection

Open biomathcode opened this issue 5 years ago • 0 comments

I am getting errors which are:- #1 ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it #2 urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x037D98B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it #3raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=52734): Max retries exceeded with url: /session/b7b8a762ac7b9bf34136788ddbd2c673/elements (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x037D98B0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

The only code change that i have done is at line 8, :-

option.add_argument("--no-sandbox")
option.add_argument('--headless')
path to the chromeDriver
browser = webdriver.Chrome(executable_path='Q:/Chrome/chromedriver/chromedriver.exe', options=option)```

#SYSTEM that i am using:- windows 10 64 bit editor:- pycharm

here is the link to all the command prompt error i am getting:-

https://github.com/pratiksharm/Error_files/blob/master/Selenium_error

biomathcode avatar Apr 25 '19 21:04 biomathcode