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

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -