Hello All,
I am writing scripts in c#,
I have written the code for menu hover and sub menu click just as below,
Actions actions = new Actions(driver);
IWebElement menuHoverLink = driver.FindElement("id", "idofelement");
actions.MoveToElement(menuHoverLink).Build().Perform();
By submenucss = By.CssSelector("cssselectorofelement");
WebDriverWait wait1 = new WebDriverWait(driver, TimeSpan.FromSeconds(20));
wait1.Until(ExpectedConditions.ElementExists(submenucss));
IWebElement submenu = driver.FindElement(submenucss);
submenu.Click();
But it is not working for all browsers.
I want the code that works in all or atleast (chrome,firefox,IE).
If anybody have the idea then please share your knowledge.
Regards,
Kedar Borkar.