История страницы
...
Is element enabled Version 17 (Java)
Группа действийAction group: БраузерыBrowsers
Описание
Данное действие предназначено для проверки существования элемента на странице по завершению тайм-аута.
Иконка действия
Параметры действия
Входные параметры
...
Description
The action checks if the element exists on the page when the timeout expires
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with the browser |
...
Выходные параметры
...
Настройки
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Контекст
. | Robin.Selenium |
Browser context |
Yes |
Элемент
Element | Element for interaction | Robin.WebElement |
Yes |
Видимый
Visible | If the parameter value is true, then check the visibility of the element. | Robin.Boolean | true |
No |
Доступный
Available | If the parameter value is true, then check whether the element is enabled. | Robin.Boolean | true |
No |
Тайм-аут
Timeout | Wait until condition to be done (ms). The value is converted to seconds: it`s devided by 1000 and rounded up. | Robin.Numeric |
No |
Results |
Результат
Result | Variable with the overall result of checking the state of the element. The value is true if the results of all checks specified by the action parameters were successful. If at least one check fails, then the overall result will be false. | Robin.Boolean | true |
Особые условия использования
Видимый и доступный элемент является кликабельным.
Пример использования
Задача
Special conditions of use
A visible and enabled element is clickable.
Example of use
Task
Follow the link Перейти по ссылке https://wiki.rpa-robin.ru/Eng/index.html и проверить видимость и доступность элемента. В случае если элемент найден, кликнуть по нему and check if the element is visible and enabled. If the element is found, click on it.
...
Solution
Воспользоваться действиями Use the "Open Browser", "Is element enabled", "If", "Send Click" actions.
Реализация
Implementation
- Assemble a robot scheme with the actions.Собрать схему робота, состоящую из действий:
- Настроить параметр действия "Открыть браузер"Set the "Open Browser" action parameters.
- Настроить параметры действия "Проверка наличия элемента". Для создания элемента необходимо воспользоваться WebSpy (см. раздел Создание Web-элементовSet the "Is element enabled" action parameters. To create an element use the WebSpy tool (see section Create Web-element).
- Set the "If" action parameters.Настроить параметры действия "Если".
- Настроить параметры действия Set the "Send Click" action parameters.
- Нажать на кнопку Click "Старт" в верхней панели.
Результат
- Start" in the top panel.
Result
The program robot completed successfully. The element is visible and enabled.Программный робот отработал успешно. Элемент видимый и доступный.