1

Используется: C#, WebDriver, Chrome, VisualStudio 2015

Visual Studio выдаёт ошибку:

The type or namespace name 'Actions' could not be found (are you missing a using directive or an assembly reference?)

Код:

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

actions.MoveToElement(element);
actions.Perform();

Вопрос: Как прописать пространство Actions или избавится от ошибки?

1
  • подключить библиотеку к проекту. using используй
    – Volodymyr
    14 дек 2016 в 21:30

1 ответ 1

1

Добавьте ссылку на сборку WebDriver.dll и используйте using OpenQA.Selenium.Interactions; написано тут

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.