Silk Mobile

Table of Contents (Homepage)

SendText

SendText(Text)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

images/images/os-icons/os_blackberry_150x150.png

images/images/os-icons/os_symbian02_150x150.png

images/images/os-icons/os_windows_mobile_150x150.png

Description

S end/Insert text to/into the application. Also supports key events.

Parameters

  • Text: Text to Send

Usage

  • Matching command to elementSendText.

  • This command can be used only for ASCII symbols. Note that the tag must be placed on the text field.

  • This command can also be used for Device key events.

Scenario: In the following example, we will use the EriBank application.

To send the text 'company' to the username text field.

Before using SendText command, need to click on the text field so that the tag will be placed there.

Parameters:

  • Text: Text to be sent – will be set to company

    images/download/attachments/3309671/1.jpg

    images/download/attachments/3309671/2.jpg

Code Examples

Java Example
client.sendText("company");
C# Example
client.sendText("company");
VBScript Example
client.sendText "company"
Report
Python Example
self.client.sendText("company")
Perl Example
$client->sendText("company");