Class MobileEngine


  • public class MobileEngine
    extends AbstractEngine
    Engine operating with mobile application/device
    • Method Detail

      • getApplicationName

        public String getApplicationName()
        Get current application as String
      • getButton

        public MobileButton getButton​(String mapId)
        Get access to button element (native/or HTML one)
        Parameters:
        mapId - the element's map id
        Returns:
        a new MobileButton instance
      • getButton

        public MobileButton getButton​(UiElementProperties properties)
        Get access to button element (native/or HTML one)
        Parameters:
        properties - properties describing this element
        Returns:
        a new MobileButton instance
      • getTextBox

        public MobileTextBox getTextBox​(String mapId)
        Get access to text box element (native/or HTML one where text edit is accepted)
        Parameters:
        mapId - the element's map id
        Returns:
        a new MobileTextBox instance
      • getTextBox

        public MobileTextBox getTextBox​(UiElementProperties properties)
        Get access to text box element (native/or HTML one where text edit is accepted)
        Parameters:
        properties - properties describing this element
        Returns:
        a new MobileTextBox instance
      • getLabel

        public MobileLabel getLabel​(String mapId)
        Get access to text label element (native/or HTML one where text edit is not accepted)
        Parameters:
        mapId - the element's map id
        Returns:
        a new MobileLabel instance
      • getLabel

        public MobileLabel getLabel​(UiElementProperties properties)
        Get access to text box element (native/or HTML one where text edit is not accepted)
        Parameters:
        properties - properties describing this element
        Returns:
        a new MobileLabel instance
      • getCheckBox

        public MobileCheckBox getCheckBox​(String mapId)
        Get access to check box element (native/or HTML one)
        Parameters:
        mapId - the element's map id
        Returns:
        a new MobileCheckBox instance
      • getCheckBox

        public MobileCheckBox getCheckBox​(UiElementProperties properties)
        Get access to check box element (native/or HTML one)
        Parameters:
        properties - properties describing this element
        Returns:
        a new MobileCheckBox instance
      • getLink

        public MobileLink getLink​(String mapId)
        Get access to link( href) element
        Parameters:
        mapId - the element's map id
        Returns:
        a new MobileLink instance
      • getLink

        public MobileLink getLink​(UiElementProperties properties)
        Get access to link element
        Parameters:
        properties - properties describing this element
        Returns:
        a new MobileLink instance
      • getElement

        public MobileElement<?> getElement​(String mapId)
        Get access to generic UI element (could be used for div/span or other UI type element)
        Parameters:
        mapId - the element's map id
        Returns:
        a new MobileElement instance
      • getElement

        public MobileElement<?> getElement​(UiElementProperties properties)
        Get access to generic UI element (could be used for div/span or other UI type element)
        Parameters:
        properties - properties describing this element
        Returns:
        a new MobileElement instance
      • getUtilsElementState

        public MobileElementState getUtilsElementState​(UiElement uiElement)
        Check element state
        Parameters:
        uiElement - the element to work with
        Returns:
        a utility class for checking the state of element
      • executeScriptAndReturn

        public String executeScriptAndReturn​(String method,
                                             Object... args)
      • executeScript

        public void executeScript​(String method,
                                  Object... args)
      • getPageSource

        public String getPageSource()
        Get page source as String
        Returns:
        page source
      • getContext

        public String getContext()
      • setContext

        public void setContext​(String context)
      • getAvailableContexts

        public String[] getAvailableContexts()