10-23-2012, 11:27 AM
(This post was last modified: 10-23-2012, 11:28 AM by vjjohnson04.)
|
How to click on a Checkbox in a webtable
|
|
10-23-2012, 12:36 PM
Try the below code... I added to ur 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
wbChk = oPage.WebTable(Result_Grd).ChildObjects(oChkBox)
For i = 1 to wbChk.Count - 1
wbChk(i).highlight
wbChk(i).Set ON
If i > 10 Then
Exit For
End If
Next
10-23-2012, 05:17 PM
Thanks for the help just modified the a few things and it works PERFECT
.Code: Code: Set oPage = Browser("micClass:=Browser").Page("micClass:=Page")
Result_Grd = "html id:=ResultGridCtl"
Set oChkBox = Description.Create()
oChkBox("micClass").value = "WebCheckBox"
oChkBox("disabled").value = 0
oPage.WebTable(Result_Grd).highlight
If oPage.WebTable(Result_Grd).Exist Then
Set wbChk = oPage.WebTable(Result_Grd).ChildObjects(oChkBox)
For i = 1 to wbChk.Count - 1
wbChk(i).highlight
wbChk(i).Set "ON"
If i > 10 Then
Exit For
End If
Next
End If
10-23-2012, 05:25 PM
My pleasure.
Glad that it worked for you.
10-25-2012, 06:08 PM
What if I have 2 columns with check boxes and want to set the value of all check boxes only in 1 column. How do i do that?
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Help with Select checkbox from data table value | jayraocourts | 0 | 1,747 |
11-01-2019, 10:25 PM Last Post: jayraocourts |
|
| Link in a webtable in a webtable | Soulwalker | 1 | 3,378 |
07-19-2017, 01:44 PM Last Post: Ankur |
|
|
|
Click checkbox using its label name. | venkatesh9032 | 1 | 3,748 |
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,971 |
07-22-2015, 09:36 AM Last Post: abhideshpande001 |
|
| Childobject return wrong checkbox count.. | VpnQTP | 1 | 3,317 |
04-09-2015, 09:07 PM Last Post: babu123 |
|
Users browsing this thread: 1 Guest(s)


.