stuart-d2
9/23/2014 - 4:24 PM

Logon Dialog -- Win32 Variants. Ref : Telerik Test Studio Documentation, "Handling Win32 Dialogs"

Logon Dialog -- Win32 Variants. Ref : Telerik Test Studio Documentation, "Handling Win32 Dialogs"


 // Launch an instance of the browser
 
            Manager.LaunchNewBrowser();
 /* Clear cookies/history.  Experienced issues in IE where intermittent failure occurs if the user
 attempts to login while session data is still active.  */           
            ActiveBrowser.ClearCache(ArtOfTest.WebAii.Core.BrowserCacheType.Cookies);
            ActiveBrowser.ClearCache(ArtOfTest.WebAii.Core.BrowserCacheType.History);
            
            Manager.DialogMonitor.AddDialog(new LogonDialog(ActiveBrowser, "<userName>","<password>"             ,DialogButton.OK));
            Manager.DialogMonitor.Start();
            ActiveBrowser.WaitUntilReady();
            ActiveBrowser.NavigateTo("<yourApp.com/launcher.aspx>", true);

            ActiveBrowser.WaitUntilReady();