Thanks Haroon, i also did the same . The code is as below:
private int getDataForRow() {
int totalrow = getTableMaxRowNum("usersresulttable")
int rowno = 0;
for (int i = 1; i <= totalrow; i++) {
String test = 'usersresulttable[' + i + '][2]';
if (getText(test).equals("[email protected]")) {
rowno = i;
}
}
return rowno
}
On Nov 16, 4:02 pm, Haroon Rasheed <[email protected]> wrote:
> One solution might be to use int getTableMaxRowNum(id):
> and loop through to find the text and get the counter as your desired row.
>
> Cheers
> Haroon
>
> 2009/11/16 khush <[email protected]>
>
>
>
> > Hello All,
>
> > Is it possible to get row number of any table based on some text
> > present in it?
>
> > Thanks,
> > Khush.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---