Always use a Wait stage whenever the screen changes

Take a closer look at the diagram. Do you see any other areas that might benefit from a Wait stage? Yes, you got that right: the robot should check to see whether the search box has been loaded before entering the keywords. When the Amazon page first loads, it appears to load very quickly. Instinctively, we know to wait for the search box to be fully loaded before we start to type in it.

However, robots will need to be taught when the page is loaded. To do so, we will observe the following steps and use the Wait stage again:

  1. In the Search action page, break the link between the Start and Enter search keywords stages.
  2. Add a Wait stage after the Start stage. Name the Wait stage Wait for search ...

Get Robotic Process Automation with Blue Prism Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.