I would like to create a robot that will assign orders to my employees. When a new order appears, the “assigned” field is empty. I don’t know how to make the robot click on the order only if it is unassigned (empty field). An example is attached (new order in red, black - order assigned with an empty field). At this moment, the robot clicks on the first order (whether assigned or not). In addition, I don’t know how to make the robot finish the task if there are no new orders.
Please explain in detail, I’m still learning and I want to get better at it.
Do while loop with a boolean variable say bool insitialize it with true when you create before the do while loop starts
Get text activity to get the value and in selector use a variable for tablerow…which can be a counter variable of type integer…
If condition to check the isnullorempty
On then side use the click activities and all for null…on else side do nothing…
After if condition add a assignn activity and increment counter= counter+1
Have a try catch around 2,3,4 steps so that when the tablerow count reaches maximum it would fail…and in the catch block use assign activity and set bool to false
Instead of try catch you can add a check app state activity before with same selector as get text and on the then side have all the get text and related activities and on the else side add assign and set bool to false
The problem with yours is that only once you are getting the text and checking same value for each row