WebElement instances.See: Description
| Interface | Description |
|---|---|
| WebElementChecker |
The methods of this interface are checking a single
WebElement instance. |
| WebElementGetter |
The methods of this interface are returning properties of a single
WebElement instance. |
WebElement instances.
During each query the program waits until a the element is accessible in the DOM. If this does not happen until a timeout runs out, an exception will be thrown.
The timeout cannot be specified directly with a numeric value. All timeouts should
be defined in the ibello configuration, with "ibello.timeout." prefix. The unit
should be seconds. During the expectation, only the key of the timeout can be specified - it is the other half
of the configuration property, after the "ibello.timeout." prefix. With this rule we can
manage our timeout values in a more secure and general way, and can change them in different test execution
environment easily.
Implementations of the interfaces can be accesses through page objects, with the PageObject#checkThat(WebElement)
and PageObject#get(WebElement) methods.
Examples (in a page object):
WebElement inputField = ...; String value = get(inputField).value(); boolean displayed = checkThat(inputField).isDisplayed();
Created by Kornél Simon, 2022