I am using Python 2.7 and Selenium 2.44. I want to automate drag and drop action in Selenium WD but according to other related posts Actions in HTML5 are not supported by Selenium yet. Is there any way to simulate drag and drop in Python? Here is the code I tried:
driver = webdriver.Firefox()
driver.get("http://ift.tt/OZSRfY")
target = driver.find_element_by_id("one")
source = driver.find_element_by_id("bin")
actionChains = ActionChains(driver)
actionChains.drag_and_drop(target, source).perform()
and it did not work.
Aucun commentaire:
Enregistrer un commentaire