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

Wait condition has timed out after launching IE9

2 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kappy
Top achievements
Rank 1
Kappy asked on 06 Jan 2012, 03:18 PM
Hi,
  I am getting problem in launching browser now.


2 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 06 Jan 2012, 11:54 PM
Hi,

I am sorry but I can't really make sense out of your code. There are too many blatant errors in it such that it won't even come close to compiling e.g.

AFTSCL.myManager.ActiveBrowser.NavigateTo(sappurl);


sappurl is defined inside of a block that this line cannot access.

catch (Exception exp)

There's no matching try statement.

Here is the standard way of initializing a manager, selecting a browser to launch, launching it and navigating to the starting page:

public void OPENAUT()
{
    Settings mySettings = new Settings();
    if (AFTSCL.BrowserLaunch == "IE")
        mySettings.Web.DefaultBrowser = BrowserType.InternetExplorer;
    else if (AFTSCL.BrowserLaunch == "FF")
        mySettings.Web.DefaultBrowser = BrowserType.FireFox;
    else if (AFTSCL.BrowserLaunch == "CH")
        mySettings.Web.DefaultBrowser = BrowserType.Chrome;
 
    Manager myManager = new Manager(mySettings);
    myManager.Start();
    myManager.LaunchNewBrowser();
    myManager.ActiveBrowser.NavigateTo("http://www.telerik.com");
}

I hope that helps.

Greetings,
Cody
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kappy
Top achievements
Rank 1
answered on 09 Jan 2012, 12:26 PM
Hi Cody,
                I stated problem in wrong way sorry for that.I thank you for your help and reply but the issue was with my internet explorer settings.I have had solve the issue.Thanks one more time. 
Tags
General Discussions
Asked by
Kappy
Top achievements
Rank 1
Answers by
Cody
Telerik team
Kappy
Top achievements
Rank 1
Share this question
or