Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

how to drag element using selenium

Solved 1 Answers 182 Views Selenium
0 1
I have a scenario, where I need to drag element. how do I implement this?

1 Answer

Best answer

You can use below code:


Actions moveSlider = new Actions(driver);
Action action = moveSlider.dragAndDropBy(driver.findElement("Selemnt selector"), xAxis yAxis).build();

answered by
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.