I wanted to mouse hover on a menu which has many sub menu. In the websites where I researched they suggest below actions to use. But actions hovers over other menu there by hiding the actual element that has to be hovered.
Actions action = new Actions(Driver);
Actions hoverclick = action.MoveToElement(HomePageMaps.MegaMenuDevelopAndGrowAsManager());
hoverclick.Build().Perform();
Please suggest a java script for mouse hovering that can be used in selenium C# [Visual Studio IDE].
As well I have tried the below java script for hovering but it doesn't hover instead it just brings the focus on the element.
IJavaScriptExecutor exe = (IJavaScriptExecutor)Driver;
exe.ExecuteScript("arguments[0].fireEvent('onmouseover');", xpath of the element to be hovered());