Package 

Interface WebAssertions


  • 
    public interface WebAssertions
    
                        

    Interface that provides assertions for WebViews

    • Method Summary

      Modifier and Type Method Description
      Unit hasText(String text) Checks if element has given text
      Unit containsText(String text) Checks if element contains given text
      <T extends Any> Unit matches(Atom<T> value, Matcher<T> matcher) Checks if element matches given matcher
      abstract WebInteractionDelegate getWeb()
      abstract Atom<ElementReference> getRef()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 matched
        matcher - Matcher that matches given value
      • getRef

         abstract Atom<ElementReference> getRef()