Forum Discussion
Hi,
As suggested by tristaanogre Please check the IE settings.
Also Can you please provide more info. Attach a screenshot of the error what you are getting and also provide the environment details i.e Which OS( 32 or 64 Bit) and IE version.
Also Can you kill all the IE process from task manager and execute the below code and check
Browsers.Item(btIExplorer).Run(<url>)
For your second query please check the link below. Might be of some help.
Hi
I did IE setting suggested by tristaanogre
I also tried the code by Sanjay.
I am still getting attached error for launching the IE browser.
I also reinstall my IE.
Note:1) If i manually keep IE browser then i can able to open URL through code.
2)It is working for IE9 but we don't support IE 9
3) I tried the same code for Chrome.The browser launched but URL didn't opened.
Environmental Detail: IE10 , 64 bit OS Windows 7 Professional.
- tristaanogre8 years agoEsteemed Contributor
TestComplete is a 32-bit application still. So, technically speaking, when it launches an IE instance, I THINK it launches the 32-bit version.
So, verify when you run your test that the version of IE that is being opened is the 32-bit version.
You can force this usingBrowsers.Item(btIExplorer, '', pX86).Run()
One thing, also, that I just noticed...
Run is a method... in the code you put in your OP, you left off the parenthesis after the call to Run. If you do so, you could also get VBScripting errors. Double check your code to make sure you are executing properly.- nishaa1238 years agoContributor
Thanks for reply but it didn't work too.
I am using Run correctly as i am putting url inside parenthesis like below.
Browsers.Item(btIExplorer).Run("https://abcd.com")
- tristaanogre8 years agoEsteemed Contributor
Could you post your full code that contains that line? The error message you posted earlier indicates that the error is happening on line 2, column 1 of your unit. I'm assuming that line of code is that line in the error, but it might be useful to see the fuller context.
Couple of really quick questions... I know they are probably obvious but...
1) The machine you are running this on, is it licensed with the Web module of test complete? The Browers object is part of that module so, if you aren't licensed, this whole thing may be a matter of VBScript reporting that the Browsers object is an unknown object.2) After you click OK on the error dialog that pops up, I'm assuming Testcomplete stops running the test. Is there any additional information in the test log to give information as to what's going on?
3) You mentioned that it works fine with IE9. Do you happen to have multiple versions of IE installed on your machine? If so, have you tried passing to the Items method the version number you want to run (second parameter)?
Related Content
Recent Discussions
- 4 hours agoSvetaG