RE: What is the use of Mousehover function in Selenium WebDriver


what is the usage of mousehover function as i did a script on and the mousehover function and i found out that it can also be done using

Please tell me the exat difference between the two..

Namit Default Asked on July 15, 2015 in Selenium WebDriver.

I guess you need to find the difference between mousehover and click first then only you will be able to understand that in technical terms

on July 16, 2015.
Add Comment
1 Answers
Best answer

Hi Namit,
Sometimes, sub menu items are getting rendered in DOM when you mouse hover on main menu. In that case, direct xpath will not work to click on sub menu. You need to mouse hover on main menu.

Train Answered on July 17, 2015.

thanks a lot

on July 18, 2015.

Welcome 🙂

on July 20, 2015.
Add Comment

Your Answer

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