Micro Focus QTP (UFT) Forums
Problem with invoking url in internet explorer - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Problem with invoking url in internet explorer (/Thread-Problem-with-invoking-url-in-internet-explorer)



Problem with invoking url in internet explorer - vijay44 - 01-21-2010

Hi,
I am facing a strange problem
When i am using

SystemUtil.Run iexplore,"http://abc.com"
its not opening the url that i specified, its going to different location.
when i am using
SystemUtil.Run "http://abc.com"
Its opening in firefox, as i have both iexplorer and firefox.
i want to open the particular url in internet explorer, the above statement is opening c:// program files
Any help will be really appreciated.
Regards;
Vijay


RE: Problem with invoking url in internet explorer - Saket - 01-21-2010

Either make IE as you default browser and directly execute
Code:
SystemUtil.Run "www.learnqtp.com"

or Specify the complete path of IE, like -
Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","www.learnqtp.com"