0

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 ?

Kingamere
  • 9,496
  • 23
  • 71
  • 110

1 Answers1

1

C#:

  • IWait: IWait is one of the interfaces within OpenQA.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> Class
    • ExpectedConditions Class
    • LoadableComponent<T> Class
    • LoadableComponentException Class
    • PopupWindowFinder Class
    • SelectElement Class
    • SlowLoadableComponent<T> Class
    • SystemClockDefaultWait<T> Class
    • UnexpectedTagNameException Class
    • WebDriverWait Class
    • IClock Interface
    • ILoadableComponent Interface
    • IWait<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 the Interface Wait<F>.
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352