how to drag element using selenium

Solved 1 Answers 175 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.

We have resolved 1.2k+ Software Testing queries!

Top Contributors