python - clear selenium action chains -
i using python 3.5 selenium 3.4.3
selenium.webdriver.remote.webelement
has clear()
function can clear text in input element.
i need call function actionchains
. but, documentation says, functions seems not part of class
how can clear()
input
element actionchain
?
try this:
actionchains(self.driver).move_to_element(self.driver.find_element_by_xpath("something")).clear()
may have add click function beforehand, if try this:
actionchains(self.driver).move_to_element(self.driver.find_element_by_xpath("something")).click() actionchains(self.driver).move_to_element(self.driver.find_element_by_xpath("something")).clear()
Comments
Post a Comment