Kapil, 

Your provided code works fine. I just used the code in the ".vbs" file and 
ran it. It opens the default browser (IE) with URL.

Regards,
Anil Rai


On Monday, August 24, 2009 at 2:52:34 PM UTC+5:30, kapil sachdeva wrote:
>
> Hi Abha, 
>  
> Roman gave a very good solution, we can use the following code to open any 
> browser, whatever is installed on that system.
>  
> dim myshell
> set myshell= CreateObject("WScript.shell")
> myshell.run "about:blank"
> set myshell= Nothing
>  
>  
> check if this code works..
>  
> thanks
> kapil
>
> On Mon, Aug 24, 2009 at 1:05 PM, Bibek Khatiwara <[email protected] 
> <javascript:>> wrote:
>
>> Ya naveen it's  working fine too..
>>
>> On Sat, Aug 22, 2009 at 9:36 PM, naveen naveen11 <[email protected] 
>> <javascript:>> wrote:
>>
>>> Hi Bibek,
>>>  
>>> Sending u code just check whether it works:
>>>  
>>> Dim objIE
>>> Set objIE = CreateObject("InternetExplorer.Application")
>>> objIE.visible = True
>>> objIE.navigate "http://www.yahoo.com";
>>> objIE.statusbar = 1
>>> This is a COM object.
>>>  
>>> Please reply if it works for u.
>>>  
>>> Regards
>>> Naveen 
>>>
>>>  
>>>
>>>
>>>  
>>> On 8/22/09, Bibek Khatiwara <[email protected] <javascript:>> wrote: 
>>>
>>>> Hi Abha!
>>>>  
>>>> *SystemUtil.Run "iexplore.exe","about:blank"*
>>>>  
>>>> that's it :)
>>>>  
>>>> Regards
>>>> Khateee
>>>>
>>>>  
>>>> On Thu, Aug 20, 2009 at 10:52 AM, abha tiwari <[email protected] 
>>>> <javascript:>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Can you give me a code in descriptive programming that can be used to 
>>>>> open any browser (eg mozilla, IE) a common piece of code that can launch 
>>>>> any browser installed on you system?
>>>>>
>>>>> -- 
>>>>> Abha Tiwari
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Regards,
>>>> Bibek
>>>>
>>>> Hey! Catch me on:
>>>> http://khateee.blogspot.com/
>>>>
>>>>
>>
>>
>> -- 
>> Regards,
>> Bibek
>>
>> Hey! Catch me on:
>> http://khateee.blogspot.com/
>>
>>

-- 
-- 
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

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to