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?
Asked
Active
Viewed 971 times
0
-
Which interactions do you like to perform? mention specifically. – Ripon Al Wasim Sep 08 '15 at 10:42
2 Answers
1
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();

Petr Janeček
- 37,768
- 12
- 121
- 145

Michael Waddell
- 11
- 2