Frame object is main culprit. As frames get dynamically changed and is
optional also. Remove that object in OR and it will solve Ur problem

Thanx,
Sandeep PL
On 09-Aug-2013 2:11 PM, "Manoj Gupta" <[email protected]> wrote:

> Seems object properties are being changed, record the same scenario and
> inspect the local or.
> On Aug 9, 2013 11:17 AM, "Vikas Goyal" <[email protected]> wrote:
>
>> Hi,
>>
>> I am facing an issue regarding the Web Objects in QTP. I am using QTP
>> 11.0 with IE9 browser.
>>
>> Test Code:
>> '****  Start of Code ********
>>  Dim btn_web
>> Set btn_Search =
>> Browser("Google").Page("Google").Frame("Content").WebButton("Search")
>> Set btn_NewSearch =
>> Browser("Google").Page("Google").Frame("Content").WebButton("New Search")
>>
>> btn_Search .Click
>> Msgbox "btn_Search Clicked"
>> btn_NewSearch.Click
>> *btn_Search.Click*
>>
>> '****  End of Code ********
>>
>> In aobve code, the code in Red font is always giving me error that
>> "Cannot identify object of class webbutton". But the same button is getting
>> clicked 1st time, but not the 2nd time. These objects are present at the
>> same page. Please provide me a solution, How can I declare a web object and
>> should use it multiple time in the code?
>>
>> Regards
>> Vikas Goyal
>>
>> --
>> --
>> 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.
>>
>>
>>
>  --
> --
> 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.
>

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


Reply via email to