Click here to Skip to main content
15,890,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my webpage an element is invisible by default. But when mouse is moved onto that object, that element becomes visible. I want selenium to do a mouse onhover and click on that element when it is visible..Can that be done??

Please help with your valuable comments..
Posted

My own solution is like this:

C#
Actions act = new Actions(driver);
IWebElement menuhover = driver.FindElement(By.Id("id"));
act.MoveToElement(menuhover);
act.Perform();
 
Share this answer
 
v2
Comments
ridoy 11-Jul-13 1:59am    
Good to see you find your solution..:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900