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
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 | |
Property style name | Property style name | Robin.String | Yes | |
Style property value | Style Property Value | Robin.Object | No |
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.
Обзор
Инструменты контента