Skip to main content

SeeTestAutomation- SendText

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

SendText(Text)

Description

Send/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.

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

Code Examples

Java Example Expand source

client.sendText("company");

C# Example Expand source

client.SendText("company");

VBScript Example Expand source

client.sendText "company"
Report

Python Example Expand source

self.client.sendText("company")

Perl Example Expand source

$client->sendText("company");