Reputation: 41
How can I be able to use AdvancedUserInteractions in C# with Selenium 2. I am getting namespace missing error. Should I add any .dll file?
Upvotes: 0
Views: 978
Reputation: 11
Add this namespace in your using section:
using OpenQA.Selenium.Interactions;
Then, you will have access to the Action class. Like:
var zoomLevel = driver.FindElement(By.Id("navZoomInSlider"));
Actions action = new Actions(driver);
action.DoubleClick(zoomLevel);
action.Build();
action.Perform();
Upvotes: 1