Interface IHtmlElementState

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void focus()
      Moves the focus to the specified element.
      void highlightElement()
      Tries to briefly change the element's background color to yellow.
      boolean isElementDisplayed()
      Check whether the element is displayed or not
      boolean isElementEnabled()  
      boolean isElementPresent()  
      void verifyExist()
      Verifies the element exist throws an exception if verification fail
      void verifyNotExist()
      Verifies the element does NOT exist throws an exception if verification fail
      void waitToBecomeDisabled()
      Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become disabled throws an exception if it does not become disabled for the default waiting period (check the 'elementStateChangeDelay' property)
      void waitToBecomeDisabled​(int millis)
      Waits for a period of time the element to become disabled throws an exception if it does not become disabled for the specified period
      void waitToBecomeDisplayed()
      Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become displayed throws an exception if it does not become displayed for the default waiting period (check the 'elementStateChangeDelay' property)
      void waitToBecomeDisplayed​(int millis)
      Waits for a period of time the element to become displayed throws an exception if it does not become displayed for the specified period
      void waitToBecomeEnabled()
      Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become enabled throws an exception if it does not become enabled for the default waiting period (check the 'elementStateChangeDelay' property)
      void waitToBecomeEnabled​(int millis)
      Waits for a period of time the element to become enabled throws an exception if it does not become enabled for the specified period
      void waitToBecomeExisting()
      Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become existing throws an exception if it does not become existing for the default waiting period (check the 'elementStateChangeDelay' property)
      void waitToBecomeExisting​(int millis)
      Waits for a period of time the element to become existing throws an exception if it does not become existing for the specified period
      void waitToBecomeHidden()
      Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become hidden throws an exception if it does not become hidden for the default waiting period (check the 'elementStateChangeDelay' property)
      void waitToBecomeHidden​(int millis)
      Waits for a period of time the element to become hidden throws an exception if it does not become hidden for the specified period
      void waitToBecomeNotExisting()
      Waits for a period of time (check the 'elementStateChangeDelay' property) the element to became non-existing throws an exception if it does not become non-existing for the default waiting period (check the 'elementStateChangeDelay' property)
      void waitToBecomeNotExisting​(int millis)
      Waits for a period of time the element to became non-existing throws an exception if it does not become non-existing for the specified period
    • Method Detail

      • focus

        void focus()
        Moves the focus to the specified element. Note: This is somewhat breakable as the browser window needs to be the active system window, otherwise the keyboard events will go to another application.
      • verifyExist

        void verifyExist()
        Verifies the element exist throws an exception if verification fail
      • verifyNotExist

        void verifyNotExist()
        Verifies the element does NOT exist throws an exception if verification fail
      • waitToBecomeExisting

        void waitToBecomeExisting()
        Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become existing throws an exception if it does not become existing for the default waiting period (check the 'elementStateChangeDelay' property)
      • waitToBecomeExisting

        void waitToBecomeExisting​(int millis)
        Waits for a period of time the element to become existing throws an exception if it does not become existing for the specified period
      • waitToBecomeNotExisting

        void waitToBecomeNotExisting()
        Waits for a period of time (check the 'elementStateChangeDelay' property) the element to became non-existing throws an exception if it does not become non-existing for the default waiting period (check the 'elementStateChangeDelay' property)
      • waitToBecomeNotExisting

        void waitToBecomeNotExisting​(int millis)
        Waits for a period of time the element to became non-existing throws an exception if it does not become non-existing for the specified period
      • waitToBecomeDisplayed

        void waitToBecomeDisplayed()
        Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become displayed throws an exception if it does not become displayed for the default waiting period (check the 'elementStateChangeDelay' property)
      • waitToBecomeDisplayed

        void waitToBecomeDisplayed​(int millis)
        Waits for a period of time the element to become displayed throws an exception if it does not become displayed for the specified period
      • waitToBecomeHidden

        void waitToBecomeHidden()
        Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become hidden throws an exception if it does not become hidden for the default waiting period (check the 'elementStateChangeDelay' property)
      • waitToBecomeHidden

        void waitToBecomeHidden​(int millis)
        Waits for a period of time the element to become hidden throws an exception if it does not become hidden for the specified period
      • waitToBecomeEnabled

        void waitToBecomeEnabled()
        Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become enabled throws an exception if it does not become enabled for the default waiting period (check the 'elementStateChangeDelay' property)
      • waitToBecomeEnabled

        void waitToBecomeEnabled​(int millis)
        Waits for a period of time the element to become enabled throws an exception if it does not become enabled for the specified period
      • waitToBecomeDisabled

        void waitToBecomeDisabled()
        Waits for a period of time (check the 'elementStateChangeDelay' property) the element to become disabled throws an exception if it does not become disabled for the default waiting period (check the 'elementStateChangeDelay' property)
      • waitToBecomeDisabled

        void waitToBecomeDisabled​(int millis)
        Waits for a period of time the element to become disabled throws an exception if it does not become disabled for the specified period
      • highlightElement

        void highlightElement()
        Tries to briefly change the element's background color to yellow. Does not work on all elements. It is useful for debugging purposes.
      • isElementPresent

        boolean isElementPresent()
        Returns:
        true if the element exists
      • isElementEnabled

        boolean isElementEnabled()
        Returns:
        true if the element is enabled
      • isElementDisplayed

        boolean isElementDisplayed()
        Check whether the element is displayed or not
        Returns:
        true if the element is displayed