How can I let the robot knows if a window pop up in a desktop app, the robot should implement some command to close the window, and if the window doesn’t pop up we ignore it. The above picture is the window called ‘Select Services Required’ that I want the robot to tick the checkbox and close it if it pops up, but sometimes the window actually doesn’t pop up, so how can i set a if statement for this?
Control Window name:"Select Services Required" id:frmJobEntryServiceType
WINDOWS.Click name:"Sea Freight" type:CheckBox
WINDOWS.Click name:Cancel
So the above codes are the code I want the robot to implement if the window pop up, now just want to know how to write a if statement to let the robot know if the window exists, pls run the code