This is a migrated thread and some comments may be shown as answers.

can not handle IE browser

3 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
San
Top achievements
Rank 1
San asked on 10 Apr 2011, 07:27 AM
Hi All,

Please help me out. I 've been struggling with this issue for weeks.

Trying on Win7 64bits + IE8  64 and WinXP + IE8, found the same problem.

This command: myManager.LaunchNewBrowser(); fires the browser launched but could not get handle with exception throw as
-----
{"Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it."}
------

Have try with some tips from this forum as change Platform Target to x86, remove/reinstall WebAii 2010.3,

Please if someone could give me any else ideas. Would really appreciate your helps/comments.

Below is my detail code

namespace ExManager
{
    public class ExecutorManager : BaseTest
    {
        public void init()
        {
            Settings mySettings = new Settings(BrowserType.InternetExplorer, @"D:\log\"); 
            mySettings.EnableSilverlight = true;
            
            Manager myManager = new Manager(mySettings);
             
            myManager.Start();
            myManager.LaunchNewBrowser();
            myManager.ActiveBrowser.NavigateTo("http://localhost:49958/UIAutomationTestPage.aspx");
             
             
            myManager.ActiveBrowser.WaitUntilReady();
             
            Global.Variables.slapp = myManager.ActiveBrowser.SilverlightApps()[0];
        }


        public void cln()
        {
            this.CleanUp();
        }


        public void execute()
        {
            init();
            SLClickHideButton.HideButton.DemoSL();
            cln();
        }
    }
}

3 Answers, 1 is accepted

Sort by
0
San
Top achievements
Rank 1
answered on 10 Apr 2011, 08:02 AM
Trying with Chrome, it works just fine.

Have tried to remove/reinstall IE8 but still got the problem.

Is there any special Add-on for IE8 running WebAii test script correctly? How can I set it up?

Please help me.
0
Cody
Telerik team
answered on 14 Apr 2011, 05:32 PM
Hi san,

I apologize for the delay responding back to you. Your code appears just fine. I was able to place it into a test project and run it (after pointing it to a different Silverlight application). Your symptom sounds like an IE add-on conflict. There is no special add-on for WebAii test scripts. We are able to find the open IE browser and automatically connect to it and begin controlling it without any add-on's. This KB article often helps with the problem you are describing (the IE window opens but then the framework throws a time-out exception connecting to the browser).  Please pay particular attention to the section near the bottom about "Temporarily disable all Internet Explorer add-ons".

Best wishes,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
San
Top achievements
Rank 1
answered on 15 Apr 2011, 05:10 AM
Thanks, I get my code worked now.

Tried to add new variable into System Environment Variables to let it pointed to IE8 32bit.
Tags
General Discussions
Asked by
San
Top achievements
Rank 1
Answers by
San
Top achievements
Rank 1
Cody
Telerik team
Share this question
or