The element I'm trying to hover is an SVG(Vertical Ellipsis icon) which is contained in a img tag.
I've tried using
- Actions class moveToElement method
WebElement element = driver.findElement(By.xpath(""));
actions.moveToElement(element);
actions.click().build().perform();
- Javascript Executor method as described in
How to do Mouse hover on Image in selenium web driver to get menu list
Both of them doesn't work.
The structure of the element is like..
<div>
<div>
<img src="ellipsis.svg">
</div>
</div>
Similar svg can be found at https://icons.getbootstrap.com/icons/three-dots-vertical/