Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File
- "/Library/Python/2.7/site-packages/selenium-2.15.0-py2.7.egg/selenium/webdriver/common/action_chains.py",
- line 44, in perform
- action() File "/Library/Python/2.7/site-packages/selenium-2.15.0-py2.7.egg/selenium/webdriver/common/action_chains.py",
- line 201, in <lambda>
- self._driver.execute(Command.MOVE_TO, {'element': to_element.id})) AttributeError: 'str' object has no attribute 'id'`
- from selenium import webdriver
- from selenium.webdriver import ActionChains
- driver = webdriver.Firefox()
- ac = ActionChains()
- source = driver.get_element_by_xpath(<xpath>)
- target = driver.get_element_by_xpath(<xpath>)
- ac.drag_and_drop(source, target).perfrom()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement