Question
6
Replies
1114
Views
Posted: March 13, 2018
Last activity: July 19, 2018
Closed
Solved
Pega Robotics wait page refresh
I'm wondering what is the best way to wait on a page refresh / postback. Currently I wait on page destroyed event and then call waitforcreate for the same page. Most of the time it works but sometimes it failed to catch the destroyed event and then times out from there before jump to waitforcreate.
You can use a WaitForEvent Created. The difference between this and WaitForCreated is subtle but important. WaitForCreated will be true if the page is Created before or after you start waiting on it. WaitForEvent Created will only be satisfied by a Created event happening after you start waiting on it.