Hi
u need set the object again
After 6th step add step 2.it will work.Please let me know the status.

Thanks
raghu



On Fri, Aug 9, 2013 at 11:30 AM, Vikas <vikasgoel123...@gmail.com> 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 ********
> 1. Dim btn_web
> 2. Set btn_Search = Browser("Google").Page("**Google").Frame("Content").**
> WebButton("Search")
> 3. Set btn_NewSearch = Browser("Google").Page("**
> Google").Frame("Content").**WebButton("New Search")
>
> 4. btn_Search .Click
> 5. Msgbox "btn_Search Clicked"
> 6. btn_NewSearch.Click
> *7. btn_Search.Click*
>
> '****  End of Code ********
>
> In the aobve code, the code in Red font is always giving me error that
> "Cannot identify object of class webbutton" and I have verified that object
> is present on the page. Also the same button is getting clicked in row no.
> 4, but in row no. 7, its giving me error. 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
>
> --
> --
> 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 MercuryQTP@googlegroups.com
> To unsubscribe from this group, send email to
> mercuryqtp+unsubscr...@googlegroups.com
> 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 mercuryqtp+unsubscr...@googlegroups.com.
> 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 MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to
mercuryqtp+unsubscr...@googlegroups.com
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 mercuryqtp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to