public interface ElementRepositoryTool
| Modifier and Type | Method and Description |
|---|---|
WebElement |
element(String elementId) |
WebElements |
elements(String elementId) |
SearchTool |
find()
Returns a
SearchTool instance which is used to search elements on the current page. |
Value |
getConfigurationValue(String name)
Returns a configuration property as a
Value. |
void |
initialize(String repositoryPath,
String windowId) |
WebElement element(String elementId)
WebElements elements(String elementId)
SearchTool find()
Returns a SearchTool instance which is used to search elements on the current page.
The returned instance offers a fluent interface for element search. Example:
WebElement image = ...; WebElement child = find().using(By.TAG_NAME, "span").leftFrom(image).first();
Value getConfigurationValue(String name)
Value. The returned value offers some public methods to
transform the configuration property into different java types.
This method always has a non-null result, even if the configuration value does not exist - in this case,
the wrapped value will be null.name - name of the configuration parameterValue instanceCreated by Kornél Simon, 2022