| Modifier and Type | Method and Description |
|---|---|
LocatorAssertions.HasTextOptions |
LocatorAssertions.HasTextOptions.setTimeout(double timeout)
Time to retry the assertion for.
|
LocatorAssertions.HasTextOptions |
LocatorAssertions.HasTextOptions.setUseInnerText(boolean useInnerText)
Whether to use
element.innerText instead of element.textContent when retrieving DOM node text. |
| Modifier and Type | Method and Description |
|---|---|
void |
LocatorAssertions.hasText(Pattern[] expected,
LocatorAssertions.HasTextOptions options)
Ensures the
Locator points to an element with the given text. |
void |
LocatorAssertions.hasText(Pattern expected,
LocatorAssertions.HasTextOptions options)
Ensures the
Locator points to an element with the given text. |
void |
LocatorAssertions.hasText(String[] expected,
LocatorAssertions.HasTextOptions options)
Ensures the
Locator points to an element with the given text. |
void |
LocatorAssertions.hasText(String expected,
LocatorAssertions.HasTextOptions options)
Ensures the
Locator points to an element with the given text. |
Copyright © 2021. All rights reserved.