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
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
Method 1:
SystemUtil.Run, Open,"http:\\ yahoo . com"
Methid 2:
InvokeApplication("c:\Program Files\IE.exe")
Regards,
Nawab
Hi Anand,
Use this code to open the required URL.
Dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = True
objIE.navigate "http://www.yahoo.com"
objIE.statusbar = 1
Further to this you can use Browser(micClass:=Browser) to work with Browser objects.
You can also use a simple InvokeApplication command to start off applications and launch Internet Explorer.
Also SystemUtil.Run command can be used to launch applications as well as webpages.
Cheers....
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
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"
It works, Thanks!
How do you invoke the application through QTP?