Mobile

Mobile

Mobile namespace

Classes

Application
ApplicationTO
Button
ButtonTO
Calendar
CalendarTO
CheckBox
CheckBoxTO
Device
DeviceTO
DropDown
DropDownTO
Edit
EditFieldTO
Lab
Label
LabelTO
Paginator
PaginatorTO
RadioGroup
RadioGroupTO
RecyclerView
RecyclerViewTO
Slider
SliderTO
Stepper
StepperTO
Table
TableTO
TabStrip
TabStripTO
Toggle
ToggleTO
UiObject
UiObjectTO
View
ViewTO
WebView
WebViewTO

Type Definitions

DeviceInfo

Type:
  • Object
Properties:
NameTypeDescription
idstringThe device ID used by Digital Lab.
modelstringThe model name of the device.
manufacturerstringThe manufacturer of the device.
osTypestringThe operating system currently running on the device.
osVersionstringThe version of the operating system currently running on the device.
namestringThe logical name that Digital Lab uses to identify the device.

DeviceOrientation

Possible values for the device orientation type.
Type:
  • Object
Properties:
NameTypeDescription
portraitstringSets the device in portrait mode.
landscapestringSets the device in landscape mode.

DeviceSource

Possible values for the device source type.
Type:
  • Object
Properties:
NameTypeDescription
amazon_device_farmstringDevice is stored on an AWS Device Farm.
genycloudstringThe device is provided by Genymotion.
hostedstringThe device is hosted by OpenText.
on_premises stringDevice is stored on Digital Lab.
mobile_center

Supported for backward compatibility
stringDevice is stored on Digital Lab.
weteststringThe device is provided by a Tencent WeTest device farm.
anystringThe device is stored or provided by any of the supported sources.

Keys

Supplies constants representing mobile keyboard keys, which can be used in the input parameter of the Device.sendKey(key) method.
Type:
  • Object
Properties:
NameTypeDescription
enterstringThe Enter key. Supported on iOS and Android.
returnstringThe Return key. Supported on iOS.
backspacestringThe Backspace key. Supported on iOS and Android.
deletestringThe Delete key. Supported on iOS and Android.
tabstringThe Tab key. Supported on Android.
escapestringThe Escape key. Supported on Android.
pageUpstringThe PageUp key. Supported on Android.
pageDownstringThe PageDown key. Supported on Android.
endstringThe End key. Supported on Android.
homestringThe Home key. Supported on Android.
leftstringThe Left key. Supported on Android.
rightstringThe Right key. Supported on Android.
upstringThe Up key. Supported on Android.
downstringThe Down key. Supported on Android.

MobileCenterConfiguration

Type:
  • Object
Properties:
NameTypeDescription
usernamestringThe Digital Lab username used to log in.
addressstringThe Digital Lab server address.

ScrollDirection

Supplies constants representing mobile scroll direction.
Type:
  • Object
Properties:
NameTypeDescription
downstringScroll down.
upstringScroll up.
leftstringScroll left.
rightstringScroll right.

SimulateAuthCancelOrigin

Authentication simulation cancellation reasons.
Type:
  • Object
Properties:
NameTypeDescription
systemstringAuthentication operation canceled by system.
userstringAuthentication operation canceled by user.

SimulateAuthFailReason

Authentication simulation failure reasons.
Type:
  • Object
Properties:
NameTypeDescription
lockoutstringToo many attempts.
notRecognizedstringAuthentication method not recognized.
notRegisteredstringAuthentication method not registered (iOS only).
fingerprintIncompletestringFingerprint incomplete, moving too fast (Android only).
sensorDirtystringFingerprint sensor is dirty (Android only).