Wait for element disappear Version 16 (Net)

Action group: Windows


Description

The action waits for an element that fits specified criteria to disappear.

Action icon

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ElementResource with data of selected element in applicationRobin.WinElement
Yes
Time-outTime in milliseconds to find required window.Robin.Numeric
No

Special conditions of use

No prior activation of the window containing the item is needed.

The group does not work with the taskbar, explorer, and workspace.

Example of use

Task

Two windows are open: "Parameters" and "Mail". Activate the "Mail" window after closing the "Parameters" window manually.

Solution

Use the "Wait for element disappear", "Activate window" actions.

Implementation

  1. Assemble a robot scheme with the actions.



  2. Set the "Wait for element disappear" action parameters. Get the element using the WinSpy tool.



  3. Set the "Activate window" action parameters.



  4. Click "Start" in the top panel. Close the "Mail" window manually (for the robot, the item located in this window will disappear).

Result

The program robot completed successfully. The robot waited for the specified element to disappear and activated the "Parameters" window.

  • Нет меток