ad-m / python-anticaptcha

Client library for solve captchas with Anticaptcha.com support.
http://python-anticaptcha.readthedocs.io/en/latest/
MIT License
219 stars 51 forks source link

TypeError: Object of type 'WebDriver' is not JSON serializable #95

Open Aizhan86 opened 2 years ago

Aizhan86 commented 2 years ago

Got error when trying to fill registration form using selenium:

def should_register_new_donor(self):
    # проверка, что есть элементы в форме регистрации
    PATIENT_IIN = self.browser.execute_script("document.getElementById('input_iin_id');")
    sleep(3)
    assert self.is_element_present(self, PATIENT_IIN), "No field for the Patient's IIN"
    self.browser.find_element(self, PATIENT_IIN).send_keys("010101123456")