I'll first provide you with this information: Ranorex version is 3.2.3.16825 and OS is Win 7 x64 SP1.
I've followed your tutorial on handling unexpected pop-up dialogs, but the functionality I am looking for now is how to handle a spontaneous appearance of a form that requires signing in, and then handling it. The code snippet for the ClosePopUpDialog() method is as shown below:
public static void ClosePopUpDialog() { RanorexTrainingRepository repo = new RanorexTrainingRepository(); while (true) { if (repo.FormAutosave.SelfInfo.Exists() ) { Thread.Sleep(300); Report.Screenshot(repo.FormAutosave.Self); repo.FormAutosave.ButtonNo.Click(); } if(repo.FormGeosoft_Connect_Sign_In.SelfInfo.Exists()) { Thread.Sleep(300); Report.Screenshot(repo.FormGeosoft_Connect_Sign_In.Self); repo.FormGeosoft_Connect_Sign_In.TextSign_In_with_your_Geosof.Click("293;15"); repo.FormGeosoft_Connect_Sign_In.ContainerPART_ContentHost.Click("133;8"); repo.FormGeosoft_Connect_Sign_In.TextGeosoftIDBox.PressKeys("email{LShiftKey down}@{LShiftKey up}geosoft.com"); repo.FormGeosoft_Connect_Sign_In.ContainerPART_ContentHost1.Click("96;8"); repo.FormGeosoft_Connect_Sign_In.TextPasswordBox.PressKeys("password"); repo.FormGeosoft_Connect_Sign_In.TextSign_In.Click("22;9"); } Thread.Sleep(1000); } }This does not work. The form pops up, yet the test case continues and ignores the form. Yet I've noticed that should the test case be stalled for maybe about 10 seconds (usually because this form wasn't dealt with on time), then it will go ahead and do this ClosePopUpDialog method. I need the functionality to be implemented such that the form is dealt with immediately and the plan is put on hold until it is dealt with
Thank you for your help. A ranorex snapshot of the form is attached.