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

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

« Предыдущий Версия 4 Текущий »

Set checkbox value Version 9 (Net)

Action group: Windows


Description

The action sets or resets checkbox value.

Action icon

Settings of parameters

СвойствоОписаниеТипПример заполненияОбязательность заполнения поля
Параметры
ЭлементРесурс который хранит данные о выбранном элементе приложения.Robin.WinElement
Да
ДействиеВыбор действия для чекбокса.Robin.String
Да
Тайм-аутВремя в миллисекундах, в течение которого будет происходить поиск нужного элемента.Robin.Numeric
Нет
Номер окнаЕсли найдено несколько окон, то действие взаимодействует с окном под указанным номеромRobin.Numeric
Нет

Special conditions of use

None. 

Example of use

Task

There is an open window "Find" on the screen. Switch the value of the "Reverse search direction" checkbox to "enabled (true)". 

Solution

Use the "Set checkbox value" action.

Implementation

  1. Move the "Set checkbox value to the workspace


    and set its parameters. Get the element with the WinSpy tool. Working with WinSpy is described in section Get Win-element
    Setting a timeout does not, in general, increase the execution time of an action beyond the time it takes for the item we are using in the action to become visible and accessible. During the set timeout, the action tries to access the element it is working with. As soon as the item is available, the waiting timeout expires.

  2. Click "Start" in the top panel.

Result

The program robot completed successfully.

The "Reverse search direction" checkbox value is changed to True.


  • Нет меток