How to find a text in an
grid and check the corresponding row Checkbox in a webpage.
I have the code A302005. I have to search for it and then check the checkbox
How to find a text in an
One way that I can think of:
<webctrl tag='TD' aaname='A302005' />
Make this a dynamic selector and pass your values
<webctrl tag='TD' aaname='"+strVal+"' />
Use this selector in Find Element with element variable as output
Use Get Attribute with “tableRow” attribute and pass element obtained in 2 with strRow as output
Your check box selector should look something like this if you include only tableRow property.
"<webctrl tag='INPUT' tableRow='3' type='checkbox' />"
Make it a dynamic selector by passing output obtained from 3 and pass it into click actity or check activity
<webctrl tag='INPUT' tableRow='"+strRow.Trim+"' type='checkbox' />
Will you explain it with an example?