python-anticaptcha icon indicating copy to clipboard operation
python-anticaptcha copied to clipboard

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

Open Aizhan86 opened this issue 4 years ago • 0 comments

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")

Aizhan86 avatar Nov 10 '21 04:11 Aizhan86