How to do a correct validation to ensure my retry scope works as intended

Hi,

I’m struggling with getting the thought process right for validating the steps in my automation.
Currently i’m going through these steps:

  1. Check app state: To ensure that the robot is at the right place in the browser
  2. 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.

Did you try already if the “Select Item” activity works for your application?

As for ensuring that it picked the dropdown option, you could add a “Check app state” to the “Condition” part of the Retry Scope.

1 Like

@MadsV

  1. Did you try select item activity?
  2. Ideally if the click is being registered then should you retry 2.1 as well? wont 2.2 suffice?
  3. if you are on modern you have a verify execution as well instead of retry again

Hope this helps

cheers

1 Like

I’ve tried with the ‘Select Item’ Activity it gives me this feedback:
image
I’ll try with the ‘Check app state’ to my condition :smile:

  1. I did try with select item it gave me this feedback:
    image

  2. Ideally it should, but since it registers the click but not the input it closes the dropdown menu. So I would have to click again to open it.

  3. I couldn’t find the Verify Execution, even though i am using modern :smile:

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 —)

@MadsV

If you check in properties of click you will have verify execution option where you can give retry as wel

Hope this helps

Cheers

1 Like

Hi Anil,

This look just like the sort of feature that solves my issue. I’ll try it tomorrow morning when I turn on the laptop. Thank you so much :smiley:!

Cheers

1 Like

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.

1 Like

Thank you for the help, this together with the Verify Execution on the ‘Click’ activity does the job! :smiley:

Thank you so much, this and the Condition in my retry scope works wonders! :smiley:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.