Hello Stephen Cannon,
You can manually set the UnexpectedDialogAction
behavior with code like this:
Settings.Current.UnexpectedDialogAction = UnexpectedDialogAction.HandleAndContinue;
Just put this code in a Coded step
and place it before the step where you expect the alert dialog to appear.
Now, you can change it again for the step where you want to handle the dialog by putting another Coded step with the following code:
Settings.Current.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
Note that, setting the UnxpectedDialogAction in this way will also work even if you run your test from Quick Execution.
Hope this helps!
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.