Rem Method 1
Browser("Creationtime:=0").WebTable("Column names:=;;X;;.*").ChildItem(1,1,
"WebCheckbox",0).Set "ON"
Rem Method 2
Set CHKObj = Browser("Creationtime:=0").WebTable("Column names:=;;X;.*")
.ChildItem(1,1,"WebCheckbox",0)
If typename(CHKObj) = "HtmlCheckBox" Then
CHKObj.Set "ON"
End IF
Rem Method 3
Rem Compare Some text in the table with some unique data
NextRowdata = "XYZ"
Set TableObj = Browser("Creationtime:=0").WebTable("Column names:=;;X;.*")
RC = TableObj.GetROProperty("ROWS")
If RC>0 Then
For ROWID = 1 To RC
GetData = TableObj.GetCellData(ROWID,2)
If lcase(trim(GetData)) = Lcase(trim(NextRowdata) Then
Exit For
End If
Next
End If
Set CHKObj = TableObj.ChildItem(RowID,1,"WebCheckbox",0)
If typename(CHKObj) = "HtmlCheckBox" Then
CHKObj.Set "ON"
End IF
On Mon, Jul 3, 2017 at 10:51 PM, uma mahesh <[email protected]> wrote:
> Use childitem method
>
> On Jul 3, 2017 10:35 PM, <[email protected]> wrote:
>
>> Hello Guys,
>>
>> Can any one please help on below scenario.
>>
>> I Have a Webtable which is having Multiple Checkboxes, I want to select
>> any check box, No check box have names.
>>
>> How Can I select the check box.
>> Please help on this scenario.
>>
>>
>> Thanks
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.