To avoid engaging with popups that are expected and/or handled by the automation e.g. a date picker, the Healing Agent should know when a popup is unexpected. One way to tell it so is to use the Verify Execution feature of the UIAutomation activities.
Example:
Hope this helps.
Gheorghe


