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 keep refresh an...
Power Automate
Answered

How to keep refresh and search for a UI element

(1) ShareShare
ReportReport
Posted on by 6
Hello,
I am new to PAD.  I am trying to keep hitting a "Refresh" button to refresh a list, until a specific item (can be recognized by a string) appears, then continue with the flow.
I've tried:
- Wait for window content does not work -  because the Refresh button needs to be clicked first.
- Create a loop to press the Refresh, the wait for window content with that specific item: I do not know how to break out of the loop when the item appears, since this function does not return any variable.
 
Could someone please help?  Any suggestion is appreciated.
 
 
 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,535 Super User 2026 Season 1 on at
    You can break out from loop with Exit loop action. Have a condition that if the text exists in window then Exit loop.
    Or use Conditional loop like so:

    Wait for window content -action should be used to check if the page is loaded fully so you don't need to use hard coded waits. So if the UI has some element that indicates the content has fully loaded you should change the 5 seconds wait to that.
    But you shouldn't use Wait for window content -action when the content might not pop up next refresh. Then it just waits until the content either shows up or the action times out.
    ​​​​​​​So if in the first refresh the content is not on the list then the flow won't continue and refresh the list until the action times out.
  • CN-09122322-0 Profile Picture
    6 on at
    Thank you so much.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

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 816

#2
Valantis Profile Picture

Valantis 603

#3
Haque Profile Picture

Haque 566

Last 30 days Overall leaderboard