I want to insert an if loop. The application I am testing may or may not display a popup message depending on numerous factors. If the message box is displayed I want my script to click 'Yes' and continue on and if the message box is not displayed I want my script to continue on with the remaining steps.
I am assuming I must add an if loop with something like:
if (condition = true)
do steps 10 to 12
else continue on with step 13
How do I define my condition?
Do I need to define a variable?
Or can I do an if statement and do a check for a property on the screen? i.e. checking for the popup message
I have attached what I thought would have worked but it doesn't. It completes the steps within the if part when the message popup appears but if the message popup does not appear it does not continue on with the remaining steps?