-
public interface WebAssertionsInterface that provides assertions for WebViews
-
-
Method Summary
Modifier and Type Method Description UnithasText(String text)Checks if element has given text UnitcontainsText(String text)Checks if element contains given text <T extends Any> Unitmatches(Atom<T> value, Matcher<T> matcher)Checks if element matches given matcher abstract WebInteractionDelegategetWeb()abstract Atom<ElementReference>getRef()-
-
Method Detail
-
hasText
Unit hasText(String text)
Checks if element has given text
- Parameters:
text- Text to be matched
-
containsText
Unit containsText(String text)
Checks if element contains given text
- Parameters:
text- Text to be searched
-
matches
<T extends Any> Unit matches(Atom<T> value, Matcher<T> matcher)
Checks if element matches given matcher
- Parameters:
value- Actual value to be matchedmatcher- Matcher that matches given value
-
getWeb
abstract WebInteractionDelegate getWeb()
-
getRef
abstract Atom<ElementReference> getRef()
-
-
-
-