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.