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

0
how to mouse move to an element

Solved 1 Answers 68 Views Selenium
0 1
I need to move my mouse to an element on a webpage using selenium. How do I do it?

1 Answer

0
Best answer
0

You can use below code.

 

Actions action = new Actions(webdriver);
WebElement ele = webdriver.findElement(By.xpath("your xpath here"));
action.moveToElement(ele).build().perform();
answered by (327 points)
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.
...