Using Array Variable on the Selector

Hi. all.

I just want to ask you how can I use Array Variable for the selector?

I should click 8 items that you can see an image below left in order.

I checked the selector and figured out I should make changes for the “aaname” so that I can change to click item.

But, I do not know how I can put the Array Variable(index) on the selector?

Please advice… :frowning:

dynamic selector do support string or int32 variables.

You can assign the Arr_Variable(Index) to a variable and then use this variable for the dynamic selector

However take also note about the surrounsinf brackets

{{myVar}}

@ymshin0421,

Use For Each to iterate your array and pass the currentItem iterating as your selector variable.

at the place of aaname value put this {{currentItem}}

Thanks,
Ashok :slight_smile:

@ymshin0421

You have to go with use for each on the list of items

and inside loop inplace of aaname variable use the currentitem

<webctrl aaname='{{currentItem}}' aira-role='treeitem' tag='A' />

cheers

Oh good. This works.

Thank you for your capture… :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.