Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (29.3k points)

I have to hover over the mouse on the menu bar ... hidden item will be displayed then click on the linked object but selenium is unable to identify/ locate the element HTML code is like this:

...> another line under this.... ==$0 \\\"element text\\\" ... <span id............

 please help me on this if possible

1 Answer

0 votes
by (50.2k points)

The information is not that clear but the basic snippet for mouseover is:


Actions action = new Actions(driver);

WebElement element = driver.findElement("elementId"));


If you see this snippet then you can easily get through your html page and you can find your element Id. 

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.1k users

Browse Categories