Selenium-Webscraping-Example
Selenium-Webscraping-Example copied to clipboard
Help wanted: error in connection
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