Class MobileElementState


  • public class MobileElementState
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void focus()
      Moves the focus to the specified element.
      boolean isElementDisplayed()  
      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 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 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 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
    • Constructor Detail

      • MobileElementState

        public MobileElementState​(UiElement uiElement)
        Parameters:
        uiElement - the element of interest
    • Method Detail

      • focus

        public void focus()
        Moves the focus to the specified element. Currently issued with tap
      • verifyExist

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

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

        public 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

        public 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

        public 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

        public 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

        public 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

        public 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
      • isElementPresent

        public boolean isElementPresent()
      • isElementDisplayed

        public boolean isElementDisplayed()