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

0
how to drag element using selenium

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

1 Answer

0
Best answer
0

You can use below code:

 

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

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.
...