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,549 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

Season of Sharing Community Challenge Launch!

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

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 412

#2
Vish WR Profile Picture

Vish WR 305

#3
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

Last 30 days Overall leaderboard