Hi All,
I want to run the bot in a for each loop if an element is not found even though the Bot should run for the next iteration and should not fail. How can we do this.
Hi All,
I want to run the bot in a for each loop if an element is not found even though the Bot should run for the next iteration and should not fail. How can we do this.
Use check app state or element exists activity and get the boolean value as output
Then use a IF activity where if the above boolean is true it guess to then block or to else block
Or simply you can enable CONTINUE ON ERROR PROPERTY to continue even if any Ui automation activity fails like click or type into etc
Hope this helps
Cheers @SURESH_P
An automation like this it’s better to use a FlowChart to loop around than a For Each. I suggest looking at the Transactional Process template for an idea how to do this.
cheers
hi @SURESH_P
True. This allows the bot to continue to the next iteration of the loop even if the element is not found, and an exception is thrown.