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

Notifications

Announcements

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,204 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard