This answer gives an example on how to wait in Java selenium webdriver, but where do you get those classes and packages such as IWait
, IWebDriver
, and OpenQA.Selenium.Support.UI.WebDriverWait
?
Asked
Active
Viewed 316 times
0

Kingamere
- 9,496
- 23
- 71
- 110
1 Answers
1
C#:
IWait
:IWait
is one of the interfaces withinOpenQA.Selenium.Support.UI Namespace
IWebDriver
:IWebDriver
is the interface which defines the interface through which the user controls the browser.OpenQA.Selenium.Support.UI.WebDriverWait
:OpenQA.Selenium.Support.UI.WebDriverWait
is the namespace which contains the following:DefaultWait<T>
ClassExpectedConditions
ClassLoadableComponent<T>
ClassLoadableComponentException
ClassPopupWindowFinder
ClassSelectElement
ClassSlowLoadableComponent<T>
ClassSystemClockDefaultWait<T>
ClassUnexpectedTagNameException
ClassWebDriverWait
ClassIClock
InterfaceILoadableComponent
InterfaceIWait<T>
Interface
Java
Wait<F>
:Wait<F>
is the generic interface for waiting until a condition is true or not null. The condition may take a single argument of type.WebDriver
:WebDriver
is the main interface to use for testing, which represents an idealised web browser.org.openqa.selenium.support.ui
:org.openqa.selenium.support.ui
contains theInterface Wait<F>
.

undetected Selenium
- 183,867
- 41
- 278
- 352
-
So I can't use it in a Java program since it's C#? – Kingamere Feb 18 '19 at 14:42
-
@Kingamere Yes, _Java_ and _C#_ are completely two different _Language Binding Art_ to work with _Selenium_. – undetected Selenium Feb 18 '19 at 14:45
-
Then how come that answer that I linked to is giving C# code when the question asks for Java code? – Kingamere Feb 18 '19 at 15:52
-
It also gives Ruby and Python code, people like to drop in additional information that's not always asked for. – Ardesco Mar 04 '19 at 09:30