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 / CSS Selector with vari...
Power Automate
Answered

CSS Selector with variable

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Could anyone advice me about above Subject?

I want to loop each rows of a html page having table tag.
So I set the CSS selector as below.

However it doesn't work even though I forced the %RowIndex% as number 0 before running the step.
Is this usage incorrect? 
If give the setting back  to original, it dose works. 


Just changed the orignal selector from
 div[Id="sr"] > div[Class="basicsearchresults"] > table > tbody > tr:eq(0)      

to

 div[Id="sr"] > div[Class="basicsearchresults"] > table > tbody > tr:eq(%RowIndex%)  


Reards,

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Did you change the selector builder mode to custom?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for quick reply.
    Yes, I set to custom as below image. 

    hibinoma_0-1615536310085.png

     

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

    You need to toggle it to the left. Right now it actually on the visual builder setting.

    Those "checkboxes" and their text don't make any sense...

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It looks work by set it to the left, thank you.
    However..., after that ,

    I tried to back to the builder setting page to modify it, but the toggle button looks gray out.
    So I can't edit it anymore. Is this normal?

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

    Yeah, it's normal. Once it has been edited in custom, you can't change it back.

     

    I guess if you want to keep a backup of a visual selector, you can press the New button in the selector overview before you make the selector custom, and then edit one of the parameters to something unrealistic, [class="visual backup"] for example.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I understood. Thank you for your advice.

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 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard