can not handle IE browser

4 posts, 0 answers
  1. San
    San avatar
    24 posts
    Member since:
    Apr 2011

    Posted 10 Apr 2011 Link to this post

    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();
            }
        }
    }
  2. San
    San avatar
    24 posts
    Member since:
    Apr 2011

    Posted 10 Apr 2011 Link to this post

    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.
  3. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 14 Apr 2011 Link to this post

    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
  4. San
    San avatar
    24 posts
    Member since:
    Apr 2011

    Posted 15 Apr 2011 Link to this post

    Thanks, I get my code worked now.

    Tried to add new variable into System Environment Variables to let it pointed to IE8 32bit.
Back to Top