selenium not setting input field value selenium not setting input field value selenium selenium

selenium not setting input field value


You need to clear() the text input first:

bet_fa = browser.find_element_by_id("betFa")bet_fa.clear()bet_fa.send_keys("0.00000005")

As for the your second problem - this is an input and the value you enter into it is kept inside the value attribute, not the text. Use get_attribute() method:

browser.find_element_by_xpath("//input[contains(@id,'betFa')]").get_attribute('value')