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 (UFT Mobile).
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 (UFT Mobile) 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:
UFT Developer 2023 and earlier:
NameTypeDescription
mobile_centerstringDevice is stored on Digital Lab (UFT Mobile).
amazon_device_farmstringDevice is stored on an AWS Device Farm.
anystringDevice is stored on Digital Lab (UFT Mobile) or AWS Device Farm.

UFT Developer 23.4:

NameTypeDescription
on_premises stringDevice is stored on Digital Lab (UFT Mobile).
awsstringDevice is stored on an AWS Device Farm.
anystringDevice is stored on Digital Lab (UFT Mobile) or an AWS Device Farm.

To support the previously used values, contact support for a hotfix.

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 (UFT Mobile) username used to log in.
addressstringThe Digital Lab (UFT Mobile) 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).