0

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?

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
Manojith
  • 41
  • 1
  • 2

2 Answers2

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
0

It could be related to this.

Community
  • 1
  • 1
Anders
  • 15,227
  • 5
  • 32
  • 42