Created
August 20, 2020 10:12
-
-
Save angelovstanton/ef4b4c37a268d25539ef09baf7ff7186 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void dragAndDrop() { | |
driver.navigate().to("http://loopj.com/jquery-simple-slider/"); | |
var element = driver.findElement(By.xpath("//*[@id='project']/p[1]/div/div[2]")); | |
Actions action = new Actions(driver); | |
action.dragAndDropBy(element, 30, 0).build().perform(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment