Wait for Window to Close

Verb: waitWindowClose

Waits for a window to close, according to defined timeout.

Syntax

waitWindowClose --window(Window) [--timeout(TimeSpan)] (Boolean)=value

Inputs

Script Designer Required AcceptedTypes Description
--window Window Required Window Window that is awaited to close.
--timeout Timeout Optional Time Span, Number, Text Maximum waiting time to execute the command.

Outputs

Script Designer AcceptedTypes Description
value Success Boolean Returns "True" if the window was closed, or "False" otherwise.

Example

Starts the notepad, waits 5 seconds and it checks if the window was closed, then it shows the result in the IBM RPA Studio output console.

defVar --name notepadWindow --type Window
defVar --name result --type Boolean
launchWindow --executablepath "notepad.exe" notepadWindow=value
waitWindowClose --window ${notepadWindow} result=value
// The result displays in the console changes according to the window interaction, if it is closed by the user, the result is "True", otherwise it is "False"
logMessage --message "Closed window: ${result}" --type "Info""

See Also

  • Attach Window
  • Cancel Token Source
  • Clear Cache
  • Click
  • Click on Cell
  • Click on Menu
  • Click on Value
  • Close Window
  • Control Screenshot
  • Count Windows
  • Expand Tree
  • Find Window
  • Find Windows
  • Focus
  • Focus Window
  • Get Barcode
  • Get Bounds
  • Get Cell Value
  • Get Control
  • Get Image Grid
  • Get Interval
  • Get Options
  • Get Table
  • Get Table Information
  • Get Tree Nodes
  • Get Value
  • Handle Open File Dialog
  • Handle Save File Dialog
  • Launch and Attach Window
  • Launch or Attach Window
  • Map Image Grid
  • Maximize or Minimize Window
  • Offset Value
  • Screenshot Window
  • Select Row
  • Select Tab
  • Set Execution Throttling
  • Set Grid Value
  • Set Value
  • Update Window
  • Verify Enabled
  • Verify If Visible
  • Wait and Close Security Window
  • Wait Busy Window
  • Wait Control
  • Wait for Control to Enable
  • Wait for Window to Appear
  • Watch and Close Window