Wednesday, 30 April 2014

QTP - UFT - How to open a browser with google.com as url using VBSript

This question is some time confusing for on going interview guys.

How to open a browser with google.com as url using VBSript or How to open a browser with google.com using UFT or QTP.

Answer is simple


Syntax
Set o1= Createobject("InternetExplorer.Application")
o1.Visible = true
o1.Navigate "www.google.com"
Set o1 = nothing


Regards,
Sreenu Babu

1 comment:

  1. Hi,

    How to make 'o1.Navigate "www.google.com"' into a parameter where you can set the URL in a data table.

    Thanks.

    ReplyDelete