I'm struggling with a phone number field that I fill using send_keys function in selenium. Actually, the submit button is supposed to be enabled after filling out the phone number, but it doesn't except if I enter the phone number manually.
I tried to click on the phone number field before filling it out, but it still doesn't work. Here is the code I'm using:
phone=webdriver.find_element_by_id("phonenumber") phone.click() phone.clear() phone.send_keys(number)
Any help will be appreciated...