Manojith
Manojith

Reputation: 41

Selenium - Advanced User Interactions

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

Answers (2)

Michael Waddell
Michael Waddell

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

Anders
Anders

Reputation: 15397

It could be related to this.

Upvotes: 0

Related Questions