Ask a Question

Help launching IE usnig VB in script editor

SOLVED
Southpaw
Contributor

Help launching IE usnig VB in script editor

Hello - Im trying to launch IE using the below snippet. It doesnt launch IE. It doenst fail either. Ive tried it without the params around the url too. Nothing. Am I missing something?

 

Sub LaunchIE
Dim IE
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 0
IE.navigate ("https://google.com")
End Sub

3 REPLIES 3
tristaanogre
Esteemed Contributor

Why are you trying to launch it using CreateObject?

TestComplete has a "Browsers" object that allows you to launch any browser insalled on your machine.

 

https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/launching-brows...

 

In VBScript, you would do this:

 

Browsers.Item("iexplore").Run

You would then access the IE browser by something like "Sys.Browser('iexplore')" or (recommended) with the mapped Alias of "Aliases.<browser node name>" and call the navigate methods from there.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Nice - coming from UFT world and its object repository was not reliable so ive always used 'descriptive programming' bypassing the object rep. Thanks much for the quick reply.

tristaanogre
Esteemed Contributor

TestComplete's NameMapping technology is VERY reliable.   While descriptive programming may have been the norm for UFT, NameMapping is the norm for TestComplete.  


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: