Help launching IE usnig VB in script editor
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
