Unable to doubleclick in selenium webdriver c# 1

634 views Asked by At

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);
1

There are 1 answers

1
Guy On BEST ANSWER

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);