try the below code
Browser("title:=.*").Page("title:=.*").webtable("name:=title").
WebRadioGroup("name:=Osubject[1]").Select "Political Science"
On Thursday, May 23, 2013 5:02:31 PM UTC+5:30, devesh bhatt wrote:
>
>
> Does QTP able to Identify WebRadioGroup Class using Descriptive
> Programming ?
>
> I want to select a radio button using descriptive programming in QTP, I
> have 13 Radio Buttons available in single field on my page
> & no one is select as default. Those are divide in 4 group
> 3 radio button are display in first group
> 2 radio button are display in second group
> 4 radio button are display in third group
> 4 radio buttons are display in fourth group
> all group is display in webtable, now i found the properties of object in
> any group & using object spy, move cursor on object than always field of
> first radio button of each group
> Properties Value
> Class Name WebRadioGroup
> abs_x 434
> abs_y 477
> all items 8;9;10
> checked 0
> class
> disabled 0
> height 20
> html id
> html tag INPUT
> innerhtml
> innertext
> items count 3
> name Osubject[1]
> outerhtml <INPUT onclick=CheckCount(this); type=radio value=8
> name=Osubject[1]>
> outertext
> selected item index 1
> type radio
> value 8
> visible True
> width 20
> x 434
> y 358
>
> i run this code as
> "Browser("title:=.*").Page("title:=.*").webtable("name:=title").webtable("name:=Osubject[1]").WebRadioGroup("name:=Osubject[1]").Select
>
> "Political Science"".
> than error message is dispaly as
> Cannot find theCannot find the "[ WebRadioGroup ]" object's parent "[
> WebTable ]" (class WebTable). Verify that parent properties match an object
> currently displayed in your application.
>
>
> Please Help
>
> Thanks & Regards
>
--
--
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/groups/opt_out.