3

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.

2
  • Where are you was looking? What are you looking for? Documentation? Commented Nov 22, 2017 at 9:42
  • No, I'm looking for the class. I literally cannot define an object of the type WebDriverWait. I'm wondering it they changed its name or moved it to a different namespace. Commented Nov 22, 2017 at 9:46

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

4 Comments

Yes, I know. I read the documentation, however that still does not solve my problem. Like I said. I have OpenQA.Selenium.Support.UI and Selenium.Support package referenced, however I still can't create an object of type WebDriverWait and I cannot figure out why.
@Vladimirlazar Check out my updated Answer. Let me know the status.
Uninstalling Selenium.WebDriver and Selenium.Support packages and than reinstalling them seems to have fixed the problem. Thank you very much!
uninstalling and reinstalling Slenium.WebDriver and Selenium.Support worked for me. Thanks a lot!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.