该答案给出了一个有关如何在Java selenium webdriver中等待的示例,但是如何从中获取这些类和包,例如IWait
, IWebDriver
和OpenQA.Selenium.Support.UI.WebDriverWait
?
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 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.