Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 20, 2016 10:38
Show Gist options
  • Save angelovstanton/93472f3f548255f85247 to your computer and use it in GitHub Desktop.
Save angelovstanton/93472f3f548255f85247 to your computer and use it in GitHub Desktop.
[TestMethod]
public void DragAndDrop()
{
this.driver.Navigate().GoToUrl(@"http://loopj.com/jquery-simple-slider/");
IWebElement element = driver.FindElement(By.XPath("//*[@id='project']/p[1]/div/div[2]"));
Actions move = new Actions(driver);
move.DragAndDropToOffset(element, 30, 0).Perform();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment