I have next code to handle OpenFileDialog in WPF app tests:
var dialog = OpenFileDialog.CreateOpenFileDialog(Manager.ActiveApplication, DialogButton.OPEN, pathToImportFile, "Open");Manager.DialogMonitor.AddDialog(dialog);Manager.DialogMonitor.Start();importStep1.Find.ByType("RadButton").User.Click();dialog.WaitUntilHandled(10000);
But sometimes my test doesn't work correctly. The dialog box remains open (with correct title - "Open"), but I have next erroe:
Message: System.TimeoutException : Timed out waiting '10000' msec. for any dialog to be handled '1'
This happens in half of the cases when the same test is run, without any changes.
