UiPath Documentation
activities
latest
false

UI Automation activities

Last updated May 21, 2026

Close Popup

UiPath.UIAutomationNext.Activities.NClosePopup

Description

Dismisses all pop-ups that are on top of the application and block a target, using the configured close buttons.

This activity can be used both inside and outside a Use Application/Browser activity.

Project compatibility

Windows | Cross-platform

Configuration

  • Popup close buttons - The labels of the buttons used to close the pop-up. In Studio Desktop, Close and Cancel button labels are filled in by default.
  • AI-Enhanced mode - Leverages AI to close the pop-up if the toggle button is set to On. Each close action via AI consumes one AI unit. The default option is Off.

Additional options

Timings
  • Popup Appear Timeout - The amount of time (in seconds) to wait for a pop-up to appear. The default value is 30 seconds.
Input
  • Popup detected exception - The exception thrown when detecting a pop-up.
Output
  • Popup handled - Indicate if a pop-up was handled or not.
  • Description
  • Project compatibility
  • Configuration
  • Additional options

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated