Im trying to use selenium to clear a text field from a 'read only' input field.
This part of the code, although i don't get errors, it doesn't work:
from selenium.webdriver.common.keys import Keys
enddate = driver.find_element_by_xpath('//*[@id="end"]')
enddate.send_keys(" ")
time.sleep(3)
I have also tried to do it by the element id, sending empty strings to the field, using clear() and it doesn't work. This is the field that I'm trying to clear on the UI (Im looking to clear the enddate field)
For testing, if I try to delete the value by modifying the HTML element on developer tools, then it works but it's not automated and does not use selenium.
Any advice on how I can accomplish this? Thanks