10-23-2012, 11:27 AM
(This post was last modified: 10-23-2012, 11:28 AM by vjjohnson04.)
Hi all,
I'm trying to get the count of check-boxes in column 1 from a webtable as seen in the image attached and click on the first 10 records setting them to on.
Code:
http://screencast.com/t/7Zkd30GRIPbB
The above code gives me the count of all check-boxes in the WebTable.
Can some one help as I'm stuck on this.
I'm trying to get the count of check-boxes in column 1 from a webtable as seen in the image attached and click on the first 10 records setting them to 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
wbChkCount = oPage.WebTable(Result_Grd).ChildObjects(oChkBox) .count
End If
http://screencast.com/t/7Zkd30GRIPbB
The above code gives me the count of all check-boxes in the WebTable.
Can some one help as I'm stuck on this.