I struggle a little with writing robot scripts properly. I can throw something together, but I don’t know if I’m using the drivers and waits correctly. Unfortunately, the Academy doesn’t provide much help with the conditions, or I fail to understand it.
I am trying to write a simple, but robust handling of the “overwrite” prompt of any application, say, Notepad.
My logic would be:
- Robot sets text of the FileName textbox
- Robot clicks on Save
Now either the ‘Save as’ dialog disappears and file is saved…
or a ‘Do you want to overwrite?’ dialog appears and the robot needs to confirm
How would you write this in accordance with best practices?