WaitElementAttribute Version 13 (Java)
Action group: Browsers
Description
The action waits for the element property or element attribute to take the specified value. The name of the attribute or property can be selected from a predefined list or specified manually.
Action icon
Settings of parameters
Свойство | Англ. наименование | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
Параметры | |||||
Контекст | Context | Контекст действия для работы с браузером. | Robin.Selenium | Контекст браузера | Да |
Элемент | Element | Элемент, который инспектируется. Обязательное поле. | Robin.WebElement | Да | |
Имя атрибута или свойства из списка | Select attribute name | Предопределенное имя атрибута или свойства элемента из списка. | Robin.String | checked | Да |
Имя атрибута | Enter attribute name | Имя атрибута, заданное пользователем | Robin.String | Нет | |
Значение атрибута | Attribute value | Значение атрибута, которое должно быть установлено. | Robin.Object | true | Нет |
Тайм-аут | Time out | Время ожидания выполнения действия (мс). Значение конвертируется в секунды: оно делится на 1000 и округляется в большую сторону. | Robin.Numeric | 10 | Нет |
Special conditions of use
If the element did not accept the specified value within the specified timeout, an error will be displayed.
Example of use
Task
Go to website https://old.bankrot.fedresurs.ru/?attempt=1, make sure the element attribute has the value = checked, next - refresh the page.
Solution
Use the "Open Browser", "WaitElementAttribute", "Refresh" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open Browser" action parameters.
- Set the "WaitElementAttribute" action parameters. To create web-element use the WebSpy tool (see section Create Web-elements).
- Set the "Refresh" action parameter.
- Click "Start" in the top panel.
Result
The program robot completed successfully.