web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to detect success ...
Power Automate
Answered

How to detect success or failure icon using UI elements in Power Automate Desktop?

(1) ShareShare
ReportReport
Posted on by 106

I am currently learning Power Automate Desktop and trying to build a flow that checks whether a process succeeded or failed.

On the screen, the result is shown as:

 

  • a green check icon when the process succeeds

  • a red X icon when the process fails

 

I received a suggestion to use image detection with two “If image” conditions. However, I understand that image detection can sometimes be unstable if the screen resolution or UI changes.

Because of that, I would like to learn how to implement this using UI element detection instead. 

 

My questions are:

 

  1. Is it possible to detect the success or failure icon as a UI element in Power Automate Desktop?

  2. What actions(flow) should be used for this approach? I am a beginner so step by step guide will be really helpful and appreciated. (ex: Wait for UI element, Check if UI element exists, etc.)

  3. If the icon is part of a web page, should I capture it as a Web UI element?

 

I would appreciate any advice or best practices for implementing this scenario. 

 

Thank you!

I have the same question (0)
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    2,097 Moderator on at
     
    1. Is it possible to detect the success or failure icon as a UI element in Power Automate Desktop?
    Yes

    2. What actions(flow) should be used for this approach?
    If the success (green checkmark) and failure (red X) icons exist in the application’s UI structure, PAD can detect them using:
    UI automation -> Desktop UI elements, or
    Web automation -> Web UI elements (if the app is running in a browser)
     
    2.1. I am a beginner so step by step guide will be really helpful and appreciated. (ex: Wait for UI element, Check if UI element exists, etc.)
    Step 1: Open the screen where the icon appears
     
    Step 2: Capture the icons as separate UI elements
    How to capture:
         In PAD (Power Automate Desktop), click Add UI element
         Hover over the green check icon
         Press Ctrl + Left Click to capture it
         -> Rename to SuccessIcon
         Do the same for the red X icon
         -> Renaem to FailureIcon
    If these icons belong to a web page, PAD will automatically store them under Web UI elements.
     
    Step 3: Use “Wait for UI element to exist”
    Add two of them:
    1. Wait for success icon (short timeout)
         Wait for UI element "SuccessIcon" to exist
         Timeout: 2000 ms
    2. Wait for failure icon
         Wait for UI element "FailureIcon" to exist
         Timeout: 2000 ms
    You can place these inside separate Try / Catch blocks OR inside an If block.

    3.If the icon is part of a web page, should I capture it as a Web UI element?
    Yes, PAD automatically differentiates between:
         Desktop UI elements
         Web UI elements (Chromium/Edge/Firefox)
    When you capture the icon from a browser window:
         the element will appear inside a Web browser instance section
         PAD uses selectors similar to CSS/XPath
    This is usually more robust than desktop selectors.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     
  • CU10030357-0 Profile Picture
    106 on at
    Hi @Sunil Kumar Pashikanti , thank you so much for guiding me step by step, It helps me to build a flow.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 411

#3
David_MA Profile Picture

David_MA 337 Super User 2026 Season 1

Last 30 days Overall leaderboard