Pankaj Devrani
Pankaj Devrani

Reputation: 511

Unable to doubleclick in selenium webdriver c# 1

I am getting an error message

'driver' is a 'variable' but is used like a method

whenever I am creating an action class instance.

InternetExplorerDriver ie = new InternetExplorerDriver(path);
Action action = new Action(ie);

Upvotes: 0

Views: 628

Answers (1)

Guy
Guy

Reputation: 50949

I believe you are looking for Actions from OpenQA.Selenium.Interactions, not Action from System, which expect a method as you can see in the error message

Actions actions = new Actions(ie);

Upvotes: 2

Related Questions