Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Set checkbox value Version 11 (Net)

Группа действийAction group: Windows

Описание действия

Действие позволяет установить или сбросить значение чекбокса.

Иконка

Image Removed

Настройки

...

Description

The action sets or resets checkbox value.

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ElementResource with data of selected element in application
СвойствоОписаниеТипПример заполненияОбязательность заполнения поляПараметрыЭлементРесурс который хранит данные о выбранном элементе приложения.
Robin.WinElement
Да

Yes
ДействиеВыбор действия для чекбокса
ActionSelecting an action for the checkbox.Robin.String
Да

Yes
Тайм
Time-
аутВремя в миллисекундах, в течение которого будет происходить поиск нужного элемента
outTime in milliseconds to find required element.Robin.Numeric
Нет

No
Номер окнаЕсли найдено несколько окон, то действие взаимодействует с окном под указанным номером
Window orderWhen found more than one window, action would interact with window defined by orderRobin.Numeric
Нет

Особые условия использования


No

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
    Image Added

    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.
    Image Added
  2. Click "Start" in the top panel.

Result

The program robot completed successfully.

Image Added

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

...

Результат

Программный робот отработал успешно. 

Image Removed

Значение чекбокса "Обратное направление поиска" изменено на True.