I am attempting to enter a file name and click the save button for a save file dialog in a WPF application with the following
SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog( Manager.ActiveApplication, DialogButton.SAVE, @"C:\Temp\TelerikTestStudioTestDatabase" );
Manager.DialogMonitor.AddDialog( saveDlg );
Manager.DialogMonitor.Start();
//Enter the code that triggers the dialog here...
saveDlg.WaitUntilHandled( 30000 );
Manager.DialogMonitor.Stop();
When the test executes I get:
'1/15/2016 1:12:18 PM' - 'Fail' : 11. [CodedStep] : CreationDialog
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[CodedStep] : CreationDialog'.
InnerException:
System.TimeoutException: Timed out waiting '30000' msec. for any dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 timeout)
at TestStudio.CreateNewTestDatabase.CreateNewTestDatabase_CodedStep() in C:\....
SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog( Manager.ActiveApplication, DialogButton.SAVE, @"C:\Temp\TelerikTestStudioTestDatabase" );
Manager.DialogMonitor.AddDialog( saveDlg );
Manager.DialogMonitor.Start();
//Enter the code that triggers the dialog here...
saveDlg.WaitUntilHandled( 30000 );
Manager.DialogMonitor.Stop();
When the test executes I get:
'1/15/2016 1:12:18 PM' - 'Fail' : 11. [CodedStep] : CreationDialog
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[CodedStep] : CreationDialog'.
InnerException:
System.TimeoutException: Timed out waiting '30000' msec. for any dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 timeout)
at TestStudio.CreateNewTestDatabase.CreateNewTestDatabase_CodedStep() in C:\....