RE: How to code mouse hover with Selenium Webdriver

I was trying to code for mousehover
and i actually followed someone’s code and to me
its not working

RE: How to code mouse hover with Selenium Webdriver

also the I can’t really find the element id for

RE: How to code mouse hover with Selenium Webdriver


for this part
there is no id specified

Add Comment
3 Answers

you can also do it by following

Actions act=new Actions(driver);
act.moveToElement(driver.findElement(By.xpath(“XPATH]”)));
act.build().perform();

where XPATH is the xpath of the element you want to hover the mouse to.
Hope this helps.

Default Answered on July 15, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.