Legacy | Type

  • Command: typetext

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Enters text into a field on the device screen. The device should be in text-entry-mode: either the virtual keyboard is open or the cursor is waiting for text. Most platforms support Unicode and allow text in any language.

On most devices, the text is sent directly to the operating system, disregarding the keyboard.

Tip: For best performance, it is recommended to use a minimal amount of keyboard languages.

Parameters

Name

Value

Default

Description

deviceId*

   

Specifies the device for this command.

text*

   

Specifies the text, in any language, to be entered.

String - The text to insert in the edit field.

Secured String - The encoded text to insert in the edit field.

scope

sentence (Sentence)

contact (Contact)

url (Url)

number (Number)

 

Specifies the the text scope. Required for devices that support simulated text entry.

Url

Number - Dialing

Sentence - Messages

Contact - Phone book names

caps

Aa (Auto first)

A (Upper case)

a (Lower case)

 

Specifies the current capitalization state of typing. Only relevant if the current position is not the first character. Required for devices that support simulated text entry.

secureField

Boolean (true|false)

 

Specifies if text typed in a text field will be obscured in the report.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_13_44_00_1095?operation=command&securityToken=<your_token>&command=typetext&param.deviceId=6370E775&param.text=excelsior