If you want to verify that the dialog is not showing up, you need to remove all "Handle 'FileUpload' dialog
" steps and handle the dialogs with a coded step. Here's what you need to do:
1. Define a FileUploadDialog in the code behind.
2. Before the Click step that triggers the dialog, add a new coded step
, create a dialog and add it to the DialogMonitor.
FileUploadDialog(ActiveBrowser, String.Empty, DialogButton.CANCEL);
3. After the Click step that triggers the dialog, add a coded step that will handle the dialog if it shows up. If it doesn't, then you'll have 1 dialog in the Dialogs collection.
"New Coded Step"
(Manager.DialogMonitor.Dialogs.Count > 0)
"This Dialog doesn't show up!"
See this video
demonstrating the execution. The sample project is also attached. Please give it a try and let me know if you need further assistance.
the Telerik team