Hi Ankit
Your first code is correct. it giving error because you are not initialize
internate explore. put below code start of code it will work
InvokeApplication "C:\Program Files (x86)\Internet Explorer\iexplore.exe
http://google.co.in"
you can do same using Record and Run setting by making "google.com" as
start-up page.
Thanks and Regards
Ajay Singh
On Sunday, July 15, 2012 12:11:50 AM UTC+5:30, Ankit Gupta wrote:
>
> Hi ,
> I have installed QTP 11 on xp2 with IE8.
>
> While recording and playing the google search script it works fine.but
> when I use the String based DP and use the first statement
>
> Browser("name:=Google").Page("title:=Google").WebButton("name:=Google
> Search").Click
>
> it throws error "Cannot find web button object parent {browser}"
>
> I have tried with supplying different properties along with creationtimeas
> ordinal identifier but it did'nt help
>
> Just to know ,should I need to install any patch for QTP 11 to fix this
> issue or any configuration needs to be done
>
>
> Your help is highly appreciated
>
>
> Thanks,
>
> Ankit
--
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