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 / Click any 3 products f...
Power Automate
Unanswered

Click any 3 products from the website dynamically

(0) ShareShare
ReportReport
Posted on by 6

Hello Guys,

I am trying to automate the SwagsLabs.com e-commerce website, where we have six products in total, but each time I need to click any three products dynamically and proceed further. Can anyone tell me how to achieve this? as of now my code is working to click all six products one by one.

My code:

Lateef_0-1701754594278.png


My website UI :

Lateef_1-1701754663674.png

Please help me out 
thanks in advance:)

  • CU31080729-3 Profile Picture
    502 Moderator on at

    Hi,

    As of my understanding you have to extract url of all 6 product item , if you need to select any 3 product item

    then you can try like this , you can set one (1) counter ( i.e. 1 number inside the variable) before loop and increment this counter by one inside loop and give condition ,

    1) if counter is equal to 1 then go to before end ,

    2) if counter equal to 2 then go to before end,

    3) if counter is equal to 3 go to before end

    place all condition before the press button on web page

    that means it only process remaining 3 product item

     

    Note :- if you got your solution you can mark as solution and gives kudos or like

     

    Thanks & Regards

    chetan ninghot

  • Lateef Profile Picture
    6 on at

    i think if i use your solution, every time it will select the same set of products like 2, 4 and 6. i want it to be dynamic in every time i run the script the possibility could be anything like 1, 2, 5, (or) 1, 4, 5, (or) 3,4,5, etc.

  • Lateef Profile Picture
    6 on at

    More specifically, what is the meaning of "then go to before end"?
    how can i achive this..

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    How exactly do you want to define which products you want to choose? Should those be random, or do you want to provide them as inputs to your flow? If they're inputs, how are they provided?

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 245 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard