Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
182 views
in Selenium by
retagged by
I need to move my mouse to an element on a webpage using selenium. How do I do it?

1 Answer

0 like 0 dislike
by The go-to Tester (327 points)
selected by
 
Best answer

You can use below code.

 

Actions action = new Actions(webdriver);
WebElement ele = webdriver.findElement(By.xpath("your xpath here"));
action.moveToElement(ele).build().perform();


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...