1from selenium.webdriver.common.action_chains import ActionChains
2
3
4def clear_text(self):
5 webdriver.ActionChains(self.driver).key_down(Keys.CONTROL).perform()
6 webdriver.ActionChains(self.driver).send_keys("a").perform()
7 webdriver.ActionChains(self.driver).key_up(Keys.CONTROL).perform()
8 webdriver.ActionChains(self.driver).send_keys(Keys.DELETE).perform()
9
10