Reputation: 511
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
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