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.
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.
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.
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.
TestComplete's NameMapping technology is VERY reliable. While descriptive programming may have been the norm for UFT, NameMapping is the norm for TestComplete.
Subject | Author | Latest Post |
---|---|---|