Question

1
Replies
95
Views
Art Gerald Ranque (agranque)
Sun Life Financial Inc

Sun Life Financial Inc
PH
agranque Member since 2017 8 posts
Sun Life Financial Inc
Posted: July 7, 2019
Last activity: July 16, 2019
Posted: 7 Jul 2019 23:46 EDT
Last activity: 16 Jul 2019 12:12 EDT
Closed

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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.