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
Dual Super User
Dual 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
Dual Super User
Dual 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
Dual Super User
Dual 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
Dual Super User
Dual 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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,182)