I’m struggling with getting the thought process right for validating the steps in my automation.
Currently i’m going through these steps:
Check app state: To ensure that the robot is at the right place in the browser
Retry Scope:
2.1: Click to open the dropdown
2.1.1: Short delay, because the application is a bit slow
2.2: Click to pick the correct dropdown option.
What i’m missing here is to ensure that it picked the dropdown option, and if it didn’t I want it to retry from 2.
I hope this makes sense.
I need to do this validation because the Website often registers the clicks, but the dropdown option isn’t registered.
I’ve put the ‘Check app state’ into my condition, but i’m unsure what i need to check for, for it to work as intended.
Do i go for A or B as my condition:
A. Picked the state while the dropdown input was chosen
B. Picked the state while the dropdown input wasn’t chosen (in default value with —)
This. There’s also the possibility to check if the default option has was not chosen, but this one’s better since then you can check that the correct result.