Did you try to use html id or name, usually form elements have it?
And you always can use index.
On Sat, Nov 15, 2008 at 11:27 PM, Sreedhar Mallipeddi <
[EMAIL PROTECTED]> wrote:
> spy on the second page and check what are the propeties its giving for
> Value.
> if any numbers are displayed, then instead of "husband" and etc. use those
> numbers
>
> On Fri, Nov 14, 2008 at 3:47 PM, mabobine <[EMAIL PROTECTED]> wrote:
>
>>
>> Following script is generated against Page1 for radio buttons
>>
>> Browser("XYZ").Page("XYZ").WebRadioGroup("frm:_idJsp69").Select
>> "Female"
>> Browser("XYZ").Page("XYZ").WebRadioGroup("frm:_idJsp71").Select
>> "Husband"
>>
>> Following script is generated against Page2 for similar radio buttons
>>
>> Browser("XYZ").Page("XYZ").WebRadioGroup("frm:_idJsp59").Select
>> "Female"
>> Browser("XYZ").Page("XYZ").WebRadioGroup("frm:_idJsp88").Select
>> "Husband"
>> -------------
>> I changed the property "Name" for both the above WebRadioGroup (in
>> Object Repository) to frm:_idJsp.* [using regular expression]
>> respectively and called them through a function on both the pages.
>> (The reason being that i want to call through a function as these two
>> lines reside on some 10 different pages)
>>
>> The function runs successfully for Page1, but it gives an error
>> message on Page2:
>>
>> The "[ WebRadioGroup ]" object's description matches more than one of
>> the objects currently displayed in your application. Add additional
>> properties to the object description in order to uniquely identify the
>> object.
>>
>> The descriptive programming fails on page2 as well:
>>
>> Set B = Browser("title:=XYZ").Page("title:=XYZ")
>>
>> B.WebRadioGroup("name:=frm:_idJsp.*").Select "Female"
>> B.WebRadioGroup("name:=frm:_idJsp.*").Select "Husband"
>>
>> There is no other unique ID that I can use to distinguish them. The
>> only ID is the name which I am using as a regular expression so that I
>> can use in function to call them on different pages.
>>
>> If uniqueness is the cause, why is it succeeding for Page1.
>>
>> Need assistance.
>>
>>
>>
>
>
> --
> Mallipeddi Sreedhar
> 91-9848871279
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---