04-26-2011, 10:39 AM
(This post was last modified: 04-26-2011, 10:45 AM by satishkumarm.)
Hi Saket,
Actually webtable has 9 rows and 1 column as is is displayed in object spy(attached here) and if i pass number directly in childitem(eg: column number as 4) then it is giving run time error when i run the below script
Error:
----------------------------------------------------------------
The statement contains one or more invalid function arguments.
Line (173): "oElem.Click".
----------------------------------------------------------------
Webtable is not having equally distributed rows and columns...this is the problem i guess..
Please help me out with any other solution
Please refer the attachments...
Thanks,
satish
Actually webtable has 9 rows and 1 column as is is displayed in object spy(attached here) and if i pass number directly in childitem(eg: column number as 4) then it is giving run time error when i run the below script
Code:
Set AdmissionRequests = Browser("BN").Page("Inpatient").Frame("Admission Requests")
r = AdmissionRequests.WebTable("Requested Admission Date").GetRowWithCellText("AR1100000113")
PRINT r
Set oElem = AdmissionRequests.WebTable("Requested Admission Date").ChildItem(r, 4, "WebElement", 0)
oElem.Click
Error:
----------------------------------------------------------------
The statement contains one or more invalid function arguments.
Line (173): "oElem.Click".
----------------------------------------------------------------
Webtable is not having equally distributed rows and columns...this is the problem i guess..
Please help me out with any other solution
Please refer the attachments...
Thanks,
satish