0

I am trying to rewrite the input value on a website but there already exists a value. I first want to clarify that value them insert my value.

This is what I tried:

driver.find_element_by_xpath("/html/body/div[1]/div[2]/div/div/div/div[2]/div/div/div/div/div[3]/div[1]/div/div[2]/input").clear()
time.sleep(2)
driver.find_element_by_xpath("/html/body/div[1]/div[2]/div/div/div/div[2]/div/div/div/div/div[3]/div[1]/div/div[2]/input").send_keys("1,000")

however, this only adds my value to the already existing value.

outcome: 267,0001,000

codester_09
  • 5,622
  • 2
  • 5
  • 27
  • Does this answer your question? [Clear text from textarea with selenium](https://stackoverflow.com/questions/7732125/clear-text-from-textarea-with-selenium) – Lenormju Dec 06 '22 at 11:39

0 Answers0