I have a strange problem with Python (or maybe I'm just a noob).
I wrote a little bot to automate some actions in the browser using selenium, and I want to work on VPS Ubuntu, so I installed Selenium and the other modules that I need, and I ran the script, but when it appeared to the first of these lines
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.ID, "free_play_captcha_types"))) driver.find_element_by_id("free_play_captcha_types").click() driver.find_element_by_id("free_play_captcha_types").click() driver.find_element_by_xpath("//option[contains(@value, 'recaptcha_v1')]").click()
I get the error socket.error: errno [111] Connection refused .
I already tried to start the selenium server before running the script, but nothing has changed ... does anyone have any advice?
Thanks in advance.
Other information: I ran the same script on a different VPS and worked successfully ...
source share