Testsuite how to wait until first macro is complete

I agree with @newuserkantu - ClickAndWait waits for a “web page loaded” event before it continues. That works well with basic websites like e. g. wikipedia, but complex websites e. g. Facebook have tons of iframes/Javascript/whatever that fires such events even when the page is not loaded completed.

I often use a visual check in such cases. That makes the waiting is rock solid. For example how this code to wait for a certain product image to show up:

  • store | 2880000 | !timeout_wait (2880000 = 8hours * 60 minutes * 60s * 100 milliseconds)
  • visualAssert | productimage.png - wait up to 8h for the image to show up