UiPath Documentation
activities
latest
false
UI Automation activities

Close Popup

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

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.

Properties panel

Input​

  • Popup detected exception - The exception thrown when detecting a pop-up.

Options​

  • Model - The LLM used to analyze the pop-up and identify the button that closes it. This value is read-only. To change the model, go to Project Settings > UI Automation Modern > Semantic Activities > Close Popup - Model for Windows projects or Project Settings > UI Automation > Semantic Activities > Close Popup - Model for Cross-platform projects. Only applies when AI-Enhanced mode is enabled.
    Available models (see Project Settings for Semantic Activities):
    • GPT-4.1
    • GPT-4.1 mini
    • GPT-5 mini
    • GPT-5.4 mini
    • Gemini 2.5 Flash
    • Gemini 3.0 Flash Preview
    • Path Mini

Timings​

  • Popup Appear Timeout - The amount of time (in seconds) to wait for a pop-up to appear. The default value is 30 seconds.

Output​

  • Popup handled - Indicates whether a pop-up was handled.
  • Description​
  • Project compatibility​
  • Configuration​
  • Input​
  • Options​
  • Timings​
  • Output​

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated