QTP – Invoke Application function

by Jeff Fillegar on July 9, 2009

Here is a code snippet to start Internet Explorer with a custom function:


Public Function StartApplication (MyURL)
 Dim TheURL
 TheURL=MyURL

 Set ObjIE = CreateObject ("InternetExplorer.Application")
 ObjIE.Visible= TRUE
 ObjIE.Navigate TheURL
 Set ObjIE=Nothing
End Function

Leave a Comment

Previous post:

Next post: