I am using selenium web driver to automate front end web UI actions in Python script. In this regard to input value to a text filed (mandatory field), driver.find_element_by_xpath(<xpath>).send_keys(<value>) code is used.
Though I am able to see that value has been typed in the concerned text field, an error message saying text box cannot be empty is being thrown on the UI.
Browser : 23.0 (Also tried with old version like 20.0, 16.0 which reproduces same issue) Python Version : 2.7
Here is my code:
sel = webdriver.Firefox()
sel.find_element_by_xpath("//input[@name='minBid']")'.send_keys("2")
sel.find_element_by_xpath("//div[text()='Save']")
Upon running this snippet, UI complaints saying min bid is not supplied.
Please help solve this challenge. Thank you.