I have next code to handle OpenFileDialog in WPF app tests:
var dialog = OpenFileDialog.CreateOpenFileDialog(Manager.ActiveApplication, DialogButton.OPEN, pathToImportFile,
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
any dialog to be handled
This happens in half of the cases when the same test is run, without any changes.