Methods
(static) attributeCondition(attrName, condition)
- Source:
Checks that certain attribute of this element met certain condition.
Parameters:
Name | Type | Description |
---|---|---|
attrName |
||
condition |
(static) checkboxChecked(expected)
- Source:
Checks if checkbox is selected or not.
Parameters:
Name | Type | Description |
---|---|---|
expected |
(async, static) clickable(finder)
- Source:
Checks if element is displayed and can be clicked on.
Parameters:
Name | Type | Description |
---|---|---|
finder |
(async, static) compose(currentResult, nextCondition)
- Source:
Checks two conditions. Second condition won't be checked if first will fail.
Parameters:
Name | Type | Description |
---|---|---|
currentResult |
||
nextCondition |
(static) count(selector, expectedCount)
- Source:
Checks that expected number of elements were found.
Parameters:
Name | Type | Description |
---|---|---|
selector |
||
expectedCount |
(async, static) displayed(finder)
- Source:
Checks that element is present and displayed.
Parameters:
Name | Type | Description |
---|---|---|
finder |
(static) enabled(finder)
- Source:
Checks that element is enabled.
Parameters:
Name | Type | Description |
---|---|---|
finder |
(static) getText(finder)
- Source:
Returns texts of the specified element.
Parameters:
Name | Type | Description |
---|---|---|
finder |
(static) not(condition)
- Source:
Negates the condition expectation.
Parameters:
Name | Type | Description |
---|---|---|
condition |
(static) onlyDisplayed(finder)
- Source:
Checks that element is displayed.
Parameters:
Name | Type | Description |
---|---|---|
finder |
(static) present(finder)
- Source:
Checks that element is present.
Parameters:
Name | Type | Description |
---|---|---|
finder |
(static) textContains(text)
- Source:
Checks that text contains provided text chunk.
Parameters:
Name | Type | Description |
---|---|---|
text |
(static) textEquals(text)
- Source:
Checks that text equals to expected value.
Parameters:
Name | Type | Description |
---|---|---|
text |
(static) textMatches(regex)
- Source:
Checks that text matches to provided regex pattern.
Parameters:
Name | Type | Description |
---|---|---|
regex |