I have a form such as this:
I am trying to set the input field value to a postal code value "M3C1B4" and then I would like to click the button.
Although I can click the button I am unable to set the value of the input field.
I've tried the following code with no success:
driver.execute_script('arguments[0].value = "M3C1B4";', driver.find_element_by_xpath('//div[@class="shippingBox-update"]//input'))
driver.find_element_by_xpath('//div[@class="shippingBox-update"]//input').send_keys('M3C1B4')
Clicking the button works using this code:
driver.find_element_by_xpath('//div[@class="shippingBox-update"]//button').click()
