Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find WebDriverWait class in OpenQa Selenium 3.7

I've just started a new project in Selenium with Webdriver 3.7 and I was looking for the Webdriverwait class in the OpenQA.Selenium.Support.UI namespace where I remeber it being, however I can't seem to find it anywhere.

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

I have also put the OpenQA.Selenium.Support.UI namespace in the code with the using keyword.

I'm sure it must be something obvious that I'm missing, but it's driving me crazy.

does anyone have any ideas?

EDIT: After trying to figure this out a bit more I've found that I only have access to part of the classes available in the OpenQA.Selenium.Support.UI namespace. There are three classes and two interface defined in that namespace that I cannot seem to access, these are: DefaultWait, SystemClock, WebDriverWait, IClock and IWait.

So it can't be a problem with there not being a reference to the OpenQA.Selenium.Support.UI namespace, since the rest of the classes in there I can access just fine.

like image 435
Vladimir Lazar Avatar asked Sep 13 '26 01:09

Vladimir Lazar


1 Answers

As per the Documentation WebdriverWait class is in OpenQA.Selenium.Support.UI namespace only.

Inheritance Hierarchy :

  1. System.Object
  2. OpenQA.Selenium.Support.UI.DefaultWait<IWebDriver>
  3. OpenQA.Selenium.Support.UI.WebDriverWait

Namespace : OpenQA.Selenium.Support.UI


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


Snapshot :

WebDriverWait


Snapshot :

OpenQA.Selenium.Support.UI Namespace


Update :

As you are still unable to access the classes I would suggest to uninstall & again install the Selenium.Webdriver and Selenium.Support packages.

like image 78
undetected Selenium Avatar answered Sep 14 '26 13:09

undetected Selenium