简体   繁体   中英

Where do I get the IWait and IWebDriver classes for Java Selenium Webdriver?

答案给出了一个有关如何在Java selenium webdriver中等待的示例,但是如何从中获取这些类和包,例如IWaitIWebDriverOpenQA.Selenium.Support.UI.WebDriverWait

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> .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM