Set element property style Version 11 (Java)
Action group: Browsers
Description
The action sets the value for the specified style property of the element.
Action icon
Settings of parameters
Свойство | Англ. наименование | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
---|---|---|---|---|---|
Параметры | |||||
Контекст | Context | Уникальный идентификатор открытого сеанса работы с браузером. | Идентификатор сеанса браузера | ACTION_CONTEXT | Да |
Элемент | Element | Элемент для взаимодействия. | Web-элемент | Да | |
Имя свойства | Property name | Имя свойства стиля, значение которого нужно узнать. | Строка | fontSize | Да |
Значение свойства | Property value | Значение свойства стиля. | Объект | 10 | Да |
Special conditions of use
None.
Example of use
Task
Follow the link https://ya.ru/ and set the element property style - font-size 40px.
Solution
Use the "Open Browsers", "Navigate", "Set element property style" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open Browser" action parameter.
- Set the "Navigate" action parameters.
- Set the "Set element property syle" action parameters. To create an element use the WebSpy tool (see section Create Web-element).
- Click "Start" in the top panel.
Result
The program robot completed successfully.
Обзор
Инструменты контента