0 votes
1 view
in Devops and Agile by (29.1k 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 (49.6k points)

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

 

Actions action = new Actions(driver);

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

action.moveToElement(element).perform();

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 !


Categories

...