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 on a list of web...
Power Automate
Unanswered

Click on a list of web elements in one action

(0) ShareShare
ReportReport
Posted on by 26

Hi! im new in the Power automate, 

 

I have this problem:

I have previously saved  some web elements,

 

video1
video2
video3
video4

 

I should perform some actions, but they are the same as for all 4 elements, only the element changes.

How can I have a single action written in a loop for all 4?

 

The action simply wants to click on 4 videos in a youtube channel to listen some songs

 

Attached what I mean, thanks to those who will help me 🙂

 

Schermata 2022-06-20 alle 16.37.29.pngSchermata 2022-06-20 alle 16.37.33.pngSchermata 2022-06-20 alle 16.37.39.pngSchermata 2022-06-20 alle 16.37.46.png

I have the same question (0)
  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Instead of clicking, could you use the "Go to web page" action....

     

    So you'd put your 4 URLs in a list, loop through the list, putting %CurrentItem% as the URL variable...

  • VgsBrazil Profile Picture
    26 on at

    Hi ryule, I know I can put url in a list, but  I need to click on the video1 element, video2 element, etc.. in the home page.. I have add the the screenshot with the element selected one of 4. Can you help me?

     

    Schermata 2022-06-20 alle 22.10.40.png

     

     

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Yeah, I couldn't think of a way to do this by performing a physical click, so that was my only workaround idea. Sorry!

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @VgsBrazil Could you please try using SendKeys {Tab}{Return}.

    Thanks
    Ankesh

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • VgsBrazil Profile Picture
    26 on at

    Maybe I explained myself wrong, how can I assign a variable to the web element "video1" "video2" etc?

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    You can put the web element in just a basic variable, and then reference it in the Selector Builder (ensure you toggle). Perhaps you could give that a try? 

     

    ryule_1-1655757433259.png

     

  • VgsBrazil Profile Picture
    26 on at

    I don't know how I can do it, can you explain? thanks 

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @VgsBrazil I believe you are looking for Dynamic Selector.

    To do that please follow the steps below:

    OR

     

    @VgsBrazil Refer this video: https://www.youtube.com/watch?v=AbjkdHDN9fw

    Hope it helps!


    Thanks
    Ankesh

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Follow these steps:

    1. Modify your UI element selector so there aren't any unique attributes at the end of the chain.
    2. Experiment with adding the Ordinal filter to the video element and ensure that ... video:eq(0) selects the first video, ... video:eq(1) selects the second, and so on.
    3. Add a loop action in your code.
    4. Use the %LoopIndex% variable in your ordinal selector, instead of the "test integers" from step 2.
    5. Remember to switch your Visual editor / Custom selector toggle to the left.
    6. Test.

    Note: you will probably want to instead Get details the href attributes from either an anchor element on the video or the video element itself, and then open each of those URLs in sequence, in order to do whatever it is you want.

     

  • VgsBrazil Profile Picture
    26 on at

    Hi Henrik, maybe surely that's what I'm looking for, unfortunately technically I can't figure out how to make it. Do you have an example file you can see?

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 780

#2
Valantis Profile Picture

Valantis 668

#3
Haque Profile Picture

Haque 601

Last 30 days Overall leaderboard