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 / Need Help with Creatin...
Power Automate
Answered

Need Help with Creating a Loop for Infinite Scrolling in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 5

Where to edit or make changes to make it work? Im new at this platform, Couldn't find a solution for it.Where to edit or make changes to make it work? Im new at this platform, Couldn't find a solution for it.Screenshot 2023-12-15 160505.pngI’m currently working on a web scraping project using Power Automate Desktop. The website I’m trying to scrape is an Indiamart page (https://dir.indiamart.com/impcat/wrinkle-remover-cream.html). The site uses infinite scrolling, with a “Show More Results” button that loads more products when clicked.

I’ve managed to set up actions to focus on the text and click the “Show More” button, but I’m having trouble creating a loop to repeat these actions until all results are loaded.

Additionally, the contact number for each product is hidden behind a “View Mobile Number” button. I need to automate the action of clicking this button before I can scrape the contact number.

Could anyone guide me on how to properly configure a loop for this scenario and automate the click action for the “View Mobile Number” button?



  • UshaJyothiKasibhotla Profile Picture
    229 Moderator on at

    Use for each loop and inside it use click on link in webpage activity and click on the phne number 

    Then get that phone number using extract data from web page 

     

    Hope this helps 

    Usha 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    If you need an infinite loop, you can use:

     

    loop while 1=1

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    As @MichaelAnnis correctly suggested, use a Loop condition (while loop) and make it loop while 1=1. This is an infinite loop. Then use If web page contains to check if the button for loading more results exists, and if it doesn't, then use Exit loop to stop looping.

         -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard