| 限定符和类型 | 接口和说明 |
|---|---|
interface |
WebDriver
The main interface to use for testing, which represents an idealised web browser.
|
interface |
WebElement
Represents an HTML element.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ChromeDriver
A
WebDriver implementation that controls a Chrome browser running on the local machine. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
EdgeDriver
A
WebDriver implementation that controls a Edge browser running on the local machine. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
FirefoxDriver
An implementation of the {#link WebDriver} interface that drives Firefox.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
InternetExplorerDriver |
| 限定符和类型 | 类和说明 |
|---|---|
class |
OperaDriver
A
WebDriver implementation that controls a Blink-based Opera browser running on the local
machine. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
RemoteWebDriver |
class |
RemoteWebElement |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SafariDriver
A WebDriver implementation that controls Safari using a browser extension
(consequently, only Safari 5.1+ is supported).
|
| 限定符和类型 | 方法和说明 |
|---|---|
WebElement |
ByIdOrName.findElement(SearchContext context) |
List<WebElement> |
ByIdOrName.findElements(SearchContext context) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
EventFiringWebDriver
A wrapper around an arbitrary
WebDriver instance which supports registering of a
WebDriverEventListener, e.g. for logging purposes. |
| 限定符和类型 | 方法和说明 |
|---|---|
WebElement |
ByChained.findElement(SearchContext context) |
WebElement |
ByAll.findElement(SearchContext context) |
List<WebElement> |
ByChained.findElements(SearchContext context) |
List<WebElement> |
ByAll.findElements(SearchContext context) |
| 构造器和说明 |
|---|
AjaxElementLocator(Clock clock,
SearchContext searchContext,
Field field,
int timeOutInSeconds) |
AjaxElementLocator(Clock clock,
SearchContext context,
int timeOutInSeconds,
AbstractAnnotations annotations) |
AjaxElementLocator(SearchContext searchContext,
Field field,
int timeOutInSeconds)
Main constructor.
|
AjaxElementLocator(SearchContext context,
int timeOutInSeconds,
AbstractAnnotations annotations)
Use this constructor in order to process custom annotaions.
|
AjaxElementLocatorFactory(SearchContext searchContext,
int timeOutInSeconds) |
DefaultElementLocator(SearchContext searchContext,
AbstractAnnotations annotations)
Use this constructor in order to process custom annotaions.
|
DefaultElementLocator(SearchContext searchContext,
Field field)
Creates a new element locator.
|
DefaultElementLocatorFactory(SearchContext searchContext) |