Cannot find WebDriverWait class in OpenQa Selenium 3.7

I just started a new project in Selenium using Webdriver 3.7, and I searched for the Webdriverwait class in the OpenQA.Selenium.Support.UI namespace, where I remember it, but I cannot find it anywhere.

I installed Selenium on my VS 2017 using the NuGet manager and installed the packages Selenium.Webdriver and Selenium.Support.

I also added the OpenQA.Selenium.Support.UI namespace to the code using the using keyword.

I am sure that this should be something obvious that I am missing, but it drives me crazy.

Does anyone have any ideas?

EDIT: trying to figure this out a bit, I found that I only have access to some of the classes available in the OpenQA.Selenium.Support.UI namespace. There are three classes and two interfaces in this namespace that I cannot access, these are: DefaultWait, SystemClock, WebDriverWait, IClock and IWait.

Thus, this may not be a problem since there is no reference to the OpenQA.Selenium.Support.UI namespace, since the rest of the classes there I can access are just fine.

+1
source share
1 answer

According to the documentation, the WebdriverWait class is in the OpenQA.Selenium.Support.UI namespace.

Inheritance Hierarchy:

  • System.Object
  • OpenQA.Selenium.Support.UI.DefaultWait<IWebDriver>
  • OpenQA.Selenium.Support.UI.WebDriverWait

Namespace : OpenQA.Selenium.Support.UI


Build : WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0


Snapshot:

WebDriverWait


Snapshot:

OpenQA.Selenium.Support.UI Namespace


Update:

Since you still cannot access the classes, I suggest uninstalling and reinstalling the Selenium.Webdriver and Selenium.Support packages.

+1
source

Source: https://habr.com/ru/post/1275299/


All Articles