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?