I am facing an issue with a generic dialog, not able to do actions on it from my code, please find my code below, this is unit test code generated using Test Studio. When I run the recorded test (*.tstest) from VS plugin, the original source from which I generated the code it works. Also attaching the screenshot of the dialog.
GenericDialog RowDelete = new GenericDialog(ActiveApplication, "Delete", true, "");
RowDelete.ButtonText =
"Cancel";
Manager.Current.DialogMonitor.AddDialog(RowDelete);
Console.WriteLine("Delete dialog text : " + RowDelete.ButtonText);
RowDelete.WaitUntilHandled(5000);
/*****************************************/
I am getting following error,
/*****************************************/
System.TimeoutException: Timed out waiting '5000' msec. for any dialog to be handled '1'
Result StackTrace:
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
Kindly help me, thanks in advance.
Regards
Chery Jose