cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hibinoma
Regular Visitor

CSS Selector with variable

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,

1 ACCEPTED SOLUTION

Accepted Solutions
Henrik_M
Super User
Super User

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...

View solution in original post

6 REPLIES 6
Henrik_M
Super User
Super User

Did you change the selector builder mode to custom?

hibinoma
Regular Visitor

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

hibinoma_0-1615536310085.png

 

Henrik_M
Super User
Super User

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...

hibinoma
Regular Visitor

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
Super User
Super User

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.

hibinoma
Regular Visitor

I understood. Thank you for your advice.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,153)