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

Ключ

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

Ждать значение стиля Версия WaitElementCssValue Version 13 (Java)

Группа действийAction group: БраузерыBrowsers

Описание

Действие ожидает факт того, что значение стиля элемента в DOM приняло указанное значение.

Image Removed

Настройки

...

Description

The action waits for the fact that the element's style value in the DOM has taken the specified value

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser

Свойство

Англ. наименование

Описание

Тип

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

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

Параметры

Контекст

ContextКонтекст действия для работы с браузером
.Robin.Selenium
Контекст браузера
Browser context
Да
Yes
Элемент
ElementElement
Элемент, который инспектируется. Обязательное поле
to be inspected. Required.Robin.WebElement

Да

Имя свойства стиля

Yes
Property style nameProperty style name
Имя свойства стиля
Robin.String
fontSize

Yes

Да

Значение свойства стиля

Property value

Значение свойства стиля

Style property valueStyle Property ValueRobin.Object
10

No

Нет

Тайм-аут

Time outВремя ожидания выполнения условия (мс). Значение конвертируется в секунды: оно делится на 1000 и округляется в большую сторону
TimeoutWait until condition to be done (ms). The value is converted to seconds: it`s devided by 1000 and rounded up.Robin.Numeric
10

Нет

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

Отсутствуют.

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


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

Image Removed

Решение: воспользоваться действиями "Открыть браузер", "Перейти по URL", "Ждать значение стиля", "Обновить".  

Реализация:

...

Image Added

Solution

Use the actions “Open Browser”, “Navigate”, “WaitElementCssValue”, “Refresh”.   

Implementation

  1. Assemble a robot scheme consisting of actions: 
    Image Added
  2. Set the “Open Browser” action parameter.
    Image Added
  3. Set the “Navigate” action parameter.
    Image Added
  4. Set the parameters of the “WaitElementCssValue” action. Take the element using the WebSpy tool (see Create Web-elements section). 
    Image Added
  5. Set the parameters of the “Refresh” action.
    Image Added
  6. Click on the “Start” button in the top panel. 

Result

The program robot completed successfully. 

Image Added

...

Результат:

Программный робот отработал успешно. 

Image Removed