История страницы
Ждать значение стиля Версия WaitElementCssValue Version 13 (Java)
Группа действийAction group: БраузерыBrowsers
Описание
Действие ожидает факт того, что значение стиля элемента в DOM приняло указанное значение.
Настройки
...
Description
The action waits for the fact that the element's style value in the DOM has taken the specified value
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 |
to be inspected. Required. | Robin.WebElement |
Да
Yes | |
Property style name | Property style name |
Robin.String |
Yes |
Да
Значение свойства стиля
Значение свойства стиля
Style property value | Style Property Value | Robin.Object |
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 |
Special conditions of use
None.
Example of use
Task
Go to Задача: перейти по ссылке https://codepen.io/GBora/pen/VLYyzY и ждать значение стиля and wait for the style value (fontSize -10.5px), после - обновить страницуafter - refresh the page.
Решение: воспользоваться действиями "Открыть браузер", "Перейти по URL", "Ждать значение стиля", "Обновить".
Реализация:
...
Solution
Use the actions “Open Browser”, “Navigate”, “WaitElementCssValue”, “Refresh”.
Implementation
- Assemble a robot scheme consisting of actions:
- Set the “Open Browser” action parameter.
- Set the “Navigate” action parameter.
- Set the parameters of the “WaitElementCssValue” action. Take the element using the WebSpy tool (see Create Web-elements section).
- Set the parameters of the “Refresh” action.
- Click on the “Start” button in the top panel.
Result
The program robot completed successfully.
...
Результат:
Программный робот отработал успешно.