Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Get text Version 3 (Net)

Группа действийAction group: SAP

Описание

...

...

Description

Get text from an element

Action icon

Настройки

Parameters and their settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextSap instance

Свойство

Описание

Тип

Пример заполнения

Обязательность заполнения поля

Параметры

Контекст

Экземпляр Sap
Robin.Sap
Да

Yes
Элемент
Element
Элемент
ElementRobin.WinElement
Да

Yes
Результаты
Results

Результат

Текст из элемента
ResultText from elementRobin.String

Особые условия использования 

Отсутствуют

Пример использования 



Special conditions of use 

None.

Example of use 

Task

Connect to an open SAP session and retrieve the button textЗадача: подключиться к открытой сессии SAP и получить текст кнопки



Solution

Use the "Connect to sessionРешение: воспользоваться действием "Подключиться к сессии", "Получить текстGet text" actions

Реализация: 

Implementation

  1. Assemble a robot scheme consisting of actionsСобрать схему робота, состоящую из действий:

  2. Настроить параметры для действия "Подключиться к сессии"Set the parameters for the "Connect to session" action

    В поле The "Сессия" указывается порядковый номер открытой сессии одного пользователя (0 – первый подключённый пользователь, 1- второй и т.д.), к которой необходимо подключиться. Нумерация начинается с 0 и зависит от времени входа в учетную запись

    Image Removed
  3. Настроить параметры для действия "Получить текст". Порядок получения элемента указан в разделе Порядок получения элемента с помощью SapSpy
    Image Removed
  4. Нажать на кнопку "Старт" в верхней панели. 

Результат:

  1. Session" field specifies the sequence number of one user's open session (0 - the first connected user, 1- the second, etc.) to which you want to connect. The numbering starts from 0 and depends on the time of login to the account

    Image Added
  2. Set the parameters for the "Get text" action. The order of receiving the item is specified in the section The order of receiving the item with SapSpy
    Image Added
  3. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The button text has been receivedПрограммный робот отработал успешно. Текст кнопки получен