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

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with the browser.Robin.SeleniumBrowser contextYes
ElementElement for interactionRobin.WebElement
Yes
Property style nameProperty style nameRobin.String
Yes
Style property valueStyle Property ValueRobin.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

  1. Assemble a robot scheme with the actions.

  2. Set the "Open Browser" action parameter.

  3. Set the "Navigate" action parameters.

  4. Set the "Set element property syle" action parameters. To create an element use the WebSpy tool (see section Create Web-element). 
  5. Click "Start" in the top panel.

Result

The program robot completed successfully.

  • Нет меток