cancel
Showing results for 
Search instead for 
Did you mean: 

Help launching IE usnig VB in script editor

SOLVED
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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Help launching IE usnig VB in script editor

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
[Community Expert Group]
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
Extensions available
3 REPLIES 3
Community Hero

Re: Help launching IE usnig VB in script editor

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
[Community Expert Group]
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
Extensions available
Contributor

Re: Help launching IE usnig VB in script editor

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.

Highlighted
Community Hero

Re: Help launching IE usnig VB in script editor

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
[Community Expert Group]
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
Extensions available
New Here?
Join us and watch the welcome video: