QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
How do you invoke the application through QTP?
Please someone provide the code to open my test Web application from/witihin my QTP code only!
Thanks in Advance,
Anand Herak
Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
Method 1:
SystemUtil.Run, Open,"http:\\ yahoo . com"
Methid 2:
InvokeApplication("c:\Program Files\IE.exe")
Regards,
Nawab
Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
Hi Anand,
Use this code to open the required URL.
[COLOR="blue"]
Dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = True
objIE.navigate "http://www.yahoo.com"
objIE.statusbar = 1[/COLOR]
Further to this you can use Browser(micClass:=Browser) to work with Browser objects.
You can also use a simple [COLOR="Blue"]InvokeApplication[/COLOR] command to start off applications and launch Internet Explorer.
Also [COLOR="blue"]SystemUtil.Run[/COLOR] command can be used to launch applications as well as webpages.
Cheers....
Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
Hi
You can invoke web application
SystemUtil.Run "iexplore.exe","www . yahoo . com"
Also, InvokeApplication can be used to open an application.
InvokeApplication "provide the path"
Thanks,
MaluR
Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
Just chane the url in the below it will work this has been already replied by Umesh Krishnan.
Dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.navigate "http://www.google.com"
Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
How do you invoke the application through QTP?
Re: QTP Code/syntax to launch/invoke a Web Applicaation(ex:http://yahoo.com) ?
Hai friend,
[QUOTE=dhanyasl;47227]How do you invoke the application through QTP?[/QUOTE]
What application do you want to invoke???
Thank
Deepa