power_settings_new

how to mouse move to an element

by
asked
0 like 0 dislike
79 views
0 1
I need to move my mouse to an element on a webpage using selenium. How do I do it?

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.

1 Answer

answered by (327 points)
selected by
0 like 0 dislike
 
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();

Related questions

add
...