Nov 25, 2009 at 10:53 PM
Edited Nov 25, 2009 at 10:55 PM
I am using White to do automation test on winform application. When I clicked a button, there will be a confirm dialog window ("xxx") pop up
winEzyTicketEmailSent = Desktop.Instance.Windows().Find(dialog=>dialog.Name=="xxx");
I just want to close this dialog window and keep the application going.
I tried three different ways as following:
btnOKInEzyTicketEmailSent = winEzyTicketEmailSent.Get<Button>(SearchCriteria.ByAutomationId("2").AndByText("OK"));
Core.InputDevices.AttachedKeyboard keyEnter = winEzyTicketEmailSent.Keyboard;
All these 3 methods work during the step-by-step debug. but it just cannot automatically close the dialog when i run the test case.
Any ideas? Thanks alot in advance.