I need add a conditional logic to my bot so that it continues if there is no data returned from a search within a web application.
Specifically, here is what is occurring:
- Search is executed.
- If a record is returned, the record will be presented in a row format with a radio button to be selected, as shown below:
- If there records returned, the screen will look like this with no radio button to select:
If condition #2 occurs, the bot will click the radio button and the processing for that specific row will continue
If condition #3 occurs, the bot needs to terminate that iteration of the loop and go on to the next search parameter in the loop.
I had my if statement set to if the data table if blank (as shown in #3) to continue to the next search parameter in the loop, and my if else has the actions necessary to continue processing with the returned record (as shown in #2). However, when the bot encounters no records returned (as shown in #3) the bot stops processing.
I believe using if/if else condition here is what I need, but I just need some guidance on how to correctly build the if action condition, so that the bot can continue to condition #2 when it encounters condition #3.
Please try the if condition with a recorder options, If object exist or not, ( here, you need to capture the radio button to check the row exist or not). If the object is present you can continue or skip..etc.
if the object not present you can also do the other operation.
Note:The Object exists and Object does not exist Recorder conditions support Chromium-based Microsoft Edge with Internet Explorer mode
Check if the action IF Recorder (object exist, object does not exist) can be useful for you
Cool. Thanks! I must have over looked that option in the condition dropdown.