Select item based on current month

in the most case we use find children to retrieve the available items from the dropdown. Based on this we can evaluate if to select item or not

we suggest to go for such a clear implementation instead of surrounding it with a try catch. Lets assume following:
IMP:

  • Try catch on select item
  • Bot selects item
  • in case of exception, Bot is flowing with intention of item is not present in dropdown

Scenario:
UI is changing, selector of dopdown is changed, but it was not recognized and adopted
Example: Select BB value from dropdown containing BB
Defect:

  • Due the changed selector select items fails for selecting BB (but present in List)
  • Bot flows as BB is not present in dropdown

So here we do see: Try catch is wrong applied and the xistence of any exception should not be rated as a particular state and used for flow decision if it is not reliable

3 Likes