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 / If Windows Contains - ...
Power Automate
Answered

If Windows Contains - UI Automation Action

(0) ShareShare
ReportReport
Posted on by 6

I used this "If Windows Contains" - UI Automation action in Power Automate Desktop for automating a SAP action.Here I tried to check for a tab whether it is available or not in SAP window, If  tab is available, its works as expected where as if tab is not available it is not failing and not moving to next action (Stucks in the same action).

 Please help me on this issue

I have the same question (1)
  • Verified answer
    eetuRobo Profile Picture
    4,579 Super User 2026 Season 2 on at

    Does it really get stuck in the 'If window contains' condition action and not for example 'Wait for window content' action or something after it? 

    If so then maybe you can try using 'Wait for window content' -action and enable "Fail with timeout error" with duration something like 200s 

    eetuRobo_0-1691747578769.png


    Then add On error that produces a error variable.

    eetuRobo_1-1691747631221.png

     


    Then you can do If statement that checks if that error variable is true. So something like this:

     

    eetuRobo_2-1691747812770.png



  • Charan_R Profile Picture
    6 on at

    Hi, Thanks for the response.

     

    Does it really get stuck in the 'If window contains' condition action and not for example 'Wait for window content' action or something after it? 

    Yes, 'If window contains' gets struck.

     

    I will try the above logic.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 272 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard