How can I create an dynamic selector from a javascript link?

Hello guys, I need to create an dynamic selector for some javascript buttons from an site because I need to click them one by one.

This is the selector, and the only thing that modifies from a button to other are some incremental numbers that I just mark:

Also, this is how the links look like. Thank you!


create a string variable called indexString
create a foreach loop (that loops over each button)
, assign index.toString(“00”) to it. e.g. this will convert 3 to “03”

then in your selector replace “02” with “{{indexString}}” so your new selector is …{{IndexString}}LinkButton…

1 Like

Thank you for your response Jack, can you tell me please how can I increment that variable? thanks