Explore Courses Blog Tutorials Interview Questions
0 votes
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. 

Browse Categories