Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drag_and_drop doesn't work in python3.4 #2533

Closed
Wooden-Robot opened this issue Jul 27, 2016 · 2 comments
Closed

drag_and_drop doesn't work in python3.4 #2533

Wooden-Robot opened this issue Jul 27, 2016 · 2 comments

Comments

@Wooden-Robot
Copy link

from selenium import webdriver
from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver import ActionChains


driver = webdriver.PhantomJS()
driver.get('http://pythonscraping.com/pages/javascript/draggableDemo.html')

print(driver.find_element_by_id("message").text)

element = driver.find_element_by_id("draggable")
target = driver.find_element_by_id("div2")
actions = ActionChains(driver)
actions.drag_and_drop(element, target).perform()

print(driver.find_element_by_id("message").text)

It doesn't work in these code.
Is it a bug?

@lukeis
Copy link
Member

lukeis commented Jul 27, 2016

duplicate of #1365 selenium's actions api doesn't work with the 'draggable' events used on the page (it doesn't fire them appropriately)

@lukeis lukeis closed this as completed Jul 27, 2016
@Wooden-Robot
Copy link
Author

Thank you for your help!

@lock lock bot locked and limited conversation to collaborators Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants