agranque Member since 2017 7 posts
Sun Life Financial Inc
Posted: 1 year ago
Last activity: 1 year 2 months ago

Cancel WaitForEvent

I'm trying to perform a NavigateTop event that will redirect a current page to a new page.

I used a WaitForEvent for that WebPage object, with NavigateTop method set as Setup, while the Fired path will go back to a WaitAny. The NavigateTop method (from WebPage object) returns a boolean value. Recently, I've encountered a False return value (I'd like to ask how this happens, too). I'm expecting NavigateTop to "destroy" the page, but since it didn't (it went to the "False" path), I should be able to exit the automation via the False path. But what has happened is not only did it go to the False path and exited the automation, but it also went back to the automation and then to the Timeout of the WebPage.Destroyed WaitForEvent. So in the end, I received two error messages.

So, how do I cancel WaitForEvent such that it will not "timeout"?

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn