public class MobileEngine extends AbstractEngine
| Modifier and Type | Class and Description |
|---|---|
class |
MobileEngine.Device |
elementsFactory, uiDriver| Constructor and Description |
|---|
MobileEngine(UiDriver uiDriver,
AbstractElementsFactory elementsFactory) |
MobileEngine(UiDriver uiDriver,
MobileDeviceUtils mobileDeviceUtils) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeScript(String method,
Object... args) |
String |
executeScriptAndReturn(String method,
Object... args) |
String |
getApplicationName()
Get current application as String
|
String[] |
getAvailableContexts() |
MobileButton |
getButton(String mapId)
Get access to button element (native/or HTML one)
|
MobileButton |
getButton(UiElementProperties properties)
Get access to button element (native/or HTML one)
|
MobileCheckBox |
getCheckBox(String mapId)
Get access to check box element (native/or HTML one)
|
MobileCheckBox |
getCheckBox(UiElementProperties properties)
Get access to check box element (native/or HTML one)
|
String |
getContext() |
MobileEngine.Device |
getDevice() |
MobileElement<?> |
getElement(String mapId)
Get access to generic UI element (could be used for div/span or other UI type element)
|
MobileElement<?> |
getElement(UiElementProperties properties)
Get access to generic UI element (could be used for div/span or other UI type element)
|
MobileLabel |
getLabel(String mapId)
Get access to text label element (native/or HTML one where text edit is not accepted)
|
MobileLabel |
getLabel(UiElementProperties properties)
Get access to text box element (native/or HTML one where text edit is not accepted)
|
MobileLink |
getLink(String mapId)
Get access to link( href) element
|
MobileLink |
getLink(UiElementProperties properties)
Get access to link element
|
String |
getPageSource()
Get page source as String
|
MobileTextBox |
getTextBox(String mapId)
Get access to text box element (native/or HTML one where text edit is accepted)
|
MobileTextBox |
getTextBox(UiElementProperties properties)
Get access to text box element (native/or HTML one where text edit is accepted)
|
MobileElementState |
getUtilsElementState(UiElement uiElement)
Check element state
|
void |
setContext(String context) |
getMapSection, loadMapFile, setMapSectionpublic MobileEngine(UiDriver uiDriver, MobileDeviceUtils mobileDeviceUtils)
public MobileEngine(UiDriver uiDriver, AbstractElementsFactory elementsFactory)
public String getApplicationName()
public MobileButton getButton(String mapId)
mapId - the element's map idMobileButton instancepublic MobileButton getButton(UiElementProperties properties)
properties - properties describing this elementMobileButton instancepublic MobileTextBox getTextBox(String mapId)
mapId - the element's map idMobileTextBox instancepublic MobileTextBox getTextBox(UiElementProperties properties)
properties - properties describing this elementMobileTextBox instancepublic MobileLabel getLabel(String mapId)
mapId - the element's map idMobileLabel instancepublic MobileLabel getLabel(UiElementProperties properties)
properties - properties describing this elementMobileLabel instancepublic MobileCheckBox getCheckBox(String mapId)
mapId - the element's map idMobileCheckBox instancepublic MobileCheckBox getCheckBox(UiElementProperties properties)
properties - properties describing this elementMobileCheckBox instancepublic MobileLink getLink(String mapId)
mapId - the element's map idMobileLink instancepublic MobileLink getLink(UiElementProperties properties)
properties - properties describing this elementMobileLink instancepublic MobileElement<?> getElement(String mapId)
mapId - the element's map idMobileElement instancepublic MobileElement<?> getElement(UiElementProperties properties)
properties - properties describing this elementMobileElement instancepublic MobileElementState getUtilsElementState(UiElement uiElement)
uiElement - the element to work withpublic String getPageSource()
public String getContext()
public void setContext(String context)
public String[] getAvailableContexts()
public MobileEngine.Device getDevice()
Copyright © 2017 Axway Software. All rights reserved.