Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to click on a Checkbox in a webtable
#1
Solved: 10 Years, 9 Months, 1 Week ago
Hi all,

[Image: 7Zkd30GRIPbB]

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.
Reply


Messages In This Thread
How to click on a Checkbox in a webtable - by vjjohnson04 - 10-23-2012, 11:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Select checkbox from data table value jayraocourts 0 1,060 11-01-2019, 10:25 PM
Last Post: jayraocourts
  Link in a webtable in a webtable Soulwalker 1 2,706 07-19-2017, 01:44 PM
Last Post: Ankur
Sad Click checkbox using its label name. venkatesh9032 1 3,053 08-10-2015, 10:33 PM
Last Post: kotaramamohana
  I want to click on all the links in the webtable. These links are nothing but some co abhideshpande001 0 2,576 07-22-2015, 09:36 AM
Last Post: abhideshpande001
  Childobject return wrong checkbox count.. VpnQTP 1 2,583 04-09-2015, 09:07 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)