Looping through table within the UI Selector

uiautomation

#1

I am trying to get text from element which looks like a table (or list) and i see a pattern as below

<wnd ctrlname='alertList' />
<ctrl name='Data Panel' role='client' />
<ctrl name='Bucket row 0' role='cell' />


<wnd ctrlname='alertList' />
<ctrl name='Data Panel' role='client' />
<ctrl name='Bucket row 1' role='cell' />


<wnd ctrlname='alertList' />
<ctrl name='Data Panel' role='client' />
<ctrl name='Bucket row 2' role='cell' />

The pattern here is Bucket Row 0 >> Bucket Row 1 >> Bucket Row 2

How do i pass a counter to the selector in order to save the element on a variable which will be tested for particular text existence?


How to select the checkbox in HTML table
#2

Hey @vds1

This link will guide you on this:

How to use a variable in: <webctrl aaname=VARIABLE />[quote=“vds1, post:1, topic:5890”]
How do i pass a counter to the selector in order to save the element on a variable which will be tested for particular text existence?
[/quote]

<wnd ctrlname='alertList' />
<ctrl name='Data Panel' role='client' />
<ctrl name='Bucket row " + counter_variable+ "'  role='cell' />

Regards…!!
AKsh


How do I use SELECTORS to get inputDate from the user and retrieve corresponding 'region' and 'total'?
#3

Thanks for the quick guidance.