Sunday, 16 March 2014

How to perform mouse over action in selenium webdriver in C#.Net?

We can simulate mouse over the element action/Event in selenium webdriver in C#.Net using below syntax

You will have to import  below namespace

Imports OpenQA.Selenium.Interactions;

suppose you want to get your mouse on the web element say - myelement
Below code will do it for you.

Actions builder = new Actions(driver);            

builder.MoveToElement(myelement).Build().Perform();



What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at reply2sagar@gmail.com

1 comment:

Buy Best Selenium Books