Clear text from textarea with selenium (Python)
As shown clearly in the script for this example, to clear what is written in a text area using the Selenium WebDriver you need to use element.clear() where element is the text input.
query = self.driver.find_element_by_name("search") query.send_keys("Hello World") query.clear()
Leave a reply
Your email address will not be published. Required fields are marked*