I need to close an application I have kept click activity to close and kept retry 3 times if it is not closed I should throw as system exception but it is moving to NXT id so multiple windows getting opened without closing.even delay is also kept
@sruthesanju
use kill process activity
or
Sequence
Assign retryCount = 0
Retry Scope
NumberOfRetries = 3
Action
Close Application
ApplicationWindow (Indicate the application window to close)
Element Exists
ApplicationWindow (Indicate the application window to check)
Output: isWindowOpen
Condition
Element Exists
ApplicationWindow (Indicate the application window to check)
Output: isWindowOpen
Delay
Duration: 00:00:02 (optional)
If isWindowOpen = True
Then
Throw
Exception: New System.Exception(“Application did not close after 3 attempts.”)
Else
(Do nothing, continue)
Please check continue on error property has been enabled in the properties panel of click activity. If so uncheck the property.
After close click activity, use Check Apps state to check if the window is disappeared or not.
Build your logic around it.
Thanks,
Ashok ![]()
Where to use the retry count.please show in example
