10-23-2012, 12:20 PM
I execute the code in this way and get an error
Error Message: Wrong number of arguments or invalid property assignment: 'oPage.WebTable(...).ChildObjects'
Line (93): "oPage.WebTable(Result_Grd).ChildObjects(i,3)(oChkBox).set "ON""
code:
Error Message: Wrong number of arguments or invalid property assignment: 'oPage.WebTable(...).ChildObjects'
Line (93): "oPage.WebTable(Result_Grd).ChildObjects(i,3)(oChkBox).set "ON""
code:
Code:
Set oPage = Browser("micClass:=Browser").Page("micClass:=Page")
Result_Grd = "html id:=ResultGridCtl"
Set oChkBox = Description.Create()
oChkBox("micClass").value = "WebCheckBox"
oPage.WebTable(Result_Grd).highlight
If oPage.WebTable(Result_Grd).Exist Then
For i=3 to 10
oPage.WebTable(Result_Grd).ChildObjects(i,3)(oChkBox).set "ON"
Next
End If