Skip to content

Instantly share code, notes, and snippets.

@valyukov
Created September 13, 2012 19:09
Show Gist options
  • Save valyukov/3716833 to your computer and use it in GitHub Desktop.
Save valyukov/3716833 to your computer and use it in GitHub Desktop.
Selenium AUI in action
# coding=utf-8
from selenium import webdriver
from selenium.webdriver import ActionChains
driver = webdriver.Firefox()
driver.get('http://go.mail.ru/')
source = driver.find_element_by_id("source")
target = driver.find_element_by_id("target")
action_chains = ActionChains(driver)
action_chains.drag_and_drop(source, target);
driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment