Randomly appearing content such as popup windows shows up mostly due to the following reasons: unknown user for a website, deep scrolling or longer time on the webpage. In Editor, mode, you can control the flow depending on weather the pop up appears or not.
Precondition Make sure the pop up appears during test creation.
Switch to mode.
Click on .
Draw an Anchor area around close button and play it.
Add a conditional jump .
Insert actions to close the popup content.
Add actions below created #Tag to continue your test.
Next time when the popup content would not appear, the Robot will jump directly to the #Tag.
Conditional jump , enables you to control execution flow depending on true/false value in Clipboard Content. Conditional Jump is only possible to a certain place in Action List that is marked with #Tag.
Preconditions: Introduce a condition using or . Make sure you are in mode.
Click on .
Type in Tag name to jump in case of false return.
Press Enter and record the action.
Replay the test to check the expected behaviour. Once the condition is met and Clipboard content returns a true result, false path will end. Test actions will continue playing.
Click to control execution flow if the value in Clipboard content is true.