Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 4 Следующий »

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

  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.

  • Нет меток