Used by: C #, WebDriver, Chrome, VisualStudio 2015

Visual Studio gives the error:

If you’re looking for a directive or an assembly reference?

Code:

Actions actions = new Actions(browser1); var element = browser1.FindElement(By.Id("element-id")); actions.MoveToElement(element); actions.Perform(); 

Question: How to prescribe an Actions space or get rid of an error?

  • connect the library to the project. using use - Volodymyr

1 answer 1

Add a link to the WebDriver.dll assembly and use using OpenQA.Selenium.Interactions; written here