I am trying to launch browser using below code, I wan to use same Manager for all my scripts. when run the below code a blanck browser is opened and after few seconds, sytem throws error at line 2 saying that "wait for conditation has timed out "
error discription error stack is
[System.TimeoutException] {"Wait for condition has timed out"} System.TimeoutException
below is my code snippet
public
static Boolean StartBrowser(){
try
{
Global.ObjManager = new Manager(false);
Global.ObjManager.LaunchNewBrowser(BrowserType.InternetExplorer, true);
//Manager.LaunchNewBrowser();
Global.ObjManager.ActiveBrowser.NavigateTo(Global.strUrl);
// Set the short-cuts to the main automation objects.
Global.ObjBrowser = Global.ObjManager.ActiveBrowser;
Global.ObjFind = Global.ObjBrowser.Find;
return true;
}
catch (System.Exception excep)
{
Console.Write(excep.Message);
}
return true;
}