2020年4月21日火曜日

Selenium Erorr: Failed to establish a new connection

I was trying to auto access to a site (stackoverfrom.com). While doing try and error with selenium python, I got this error:

MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=48710): Max retries exceeded with url: /session/2a452d24-4918-4c3c-858d-22eb739d604c/element (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))

I thought my IP address was blocked (by stackoverflow.com)

But it rurned out that this was coming from different part.

Driver.quit was done because wait.WebDriverWait(driver,30).until(EC.visibility_of_all_elements_located((By.CLASS_NAME, "XXXXX"))) was wrong.

That is: Class name isn't available for WebDriverWait.


https://stackoverflow.com/questions/57262217/how-do-you-use-ec-presence-of-element-locatedby-id-mydynamicelement-excep




0 件のコメント:

コメントを投稿