Home

Published

- 1 min read

ctrl c selenium python

img of ctrl c selenium python

The solution for this is noted below

ctrl c selenium python

Solution

   from selenium.webdriver.common.action_chains import ActionChains


def clear_text(self):
    webdriver.ActionChains(self.driver).key_down(Keys.CONTROL).perform()
    webdriver.ActionChains(self.driver).send_keys("a").perform()
    webdriver.ActionChains(self.driver).key_up(Keys.CONTROL).perform()
    webdriver.ActionChains(self.driver).send_keys(Keys.DELETE).perform()

Try other methods by searching on the site. That is if this doesn’t work