| || |
how to use regular expression for webtable
i am having more than one table just i want to use regular expression to identify the table. because if the table values are different it is not getting identified..
some situation i will not get some tables, when i execute the script it runs only how i read the table if the table order is different then the script throws error, pls help me how to handle this situation.
Re: how to use regular expression for webtable
Try using below code
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebTable"
Set tbl = Browser("XXX").Page("XXX").ChildObjects(oDesc)
TableCount = tbl.Count()
For k = 0 To TableCount - 1
vStrReq=tbl(k).GetCellData(1,1) 'You know some value from ur table right which will never change in particular cell
If Trim(vStrReq)="Jurisdiction" Then
if Browser("XXX").Page("XXX").Webtable("index:="& k).Exist Then
'If the webtable is not recognizing with with index add some additional properties
'Do your Operation here