Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 5 Следующий »

Send text Version 18 (Java)

Action group: Browsers


Description

The action emulates the text input to the specified element.

Action icon

Settings of parameters

СвойствоОписаниеТипПример заполненияОбязательность заполнения поля
Параметры
КонтекстПеременная с драйвером браузера, c которым будет работать СистемаRobin.SeleniumКонтекст браузераДа
ЭлементЭлемент для взаимодействияRobin.WebElement
Да
ТекстТекст, который необходимо ввестиRobin.Object
Нет
Задержка (мс)Время между нажатиями символов из параметра «Текст». Указывается в миллисекундах.Robin.Numeric
Нет
Быстрый вводВозможность быстрого ввода для больших объёмов текста. Прим. : используется скрипт JS.Robin.BooleantrueНет

Special conditions of use

The focus for text input is set by clicking and moving to the end of the text is done by pressing Ctrl+End (keyed into the action).

I.e. the text is always added to the end, not replaced (even for JavaScript, the new value is added to the existing value).

If an element is out of view, scroll to it.

Example of use

Task

Go to website Robin RPA https://www.rpa-robin.ru/kontakty , fill in the "Email" field. 


Solution 

Use the "Open Browser", "Send text" actions.

Implementation

  1. Assemble a robot scheme with the actions.


  2. Set the "Open Browser" action parameters (see Open Browser Windows, tabs, frames). 

    1. "Browser" parameter. Select a browser from the list for the robot to open.

    2. "URL" parameter. Specify the URL of the page to which the browser will be navigated after opening the browser.

  3. Create a "String" type variable "Email". Specify text in the value of the variable. In this case it is an email address.

  4. Set the "Send text" action parameters. To create an element use the WebSpy tool (see section Create Web-element).

    1. "Context" parameter. Specify the open browser context.

    2. "Element" parameter. Select a web-element for interaction. To create an element use the WebSpy tool (see section Create Web-element).

    3. "Text" parameter. Specify the text to be entered. In this case we select the previously created variable "Email".

  5. Click "Start" in the top panel.

Result

The program robot completed successfully.

The value of the "Email" variable was entered in the "Email" field.

  • Нет меток