Please see the test I attached. It demonstrates how I overcame the issue:
- Iteration 1 intentionally succeeds and iteration 2 intentionally fails.
- Instead of inserting a standard Handle Alert Dialog step, I handle the Submit Click step and the Alert Handler in a coded step. This effectively handles the alert if present and does nothing if not present. (Note the using ArtOfTest.WebAii.Win32.Dialogs; statement in the code-behind file by clicking View Class.)
- I then used a standard IF/ELSE Logical step to fork the test. The condition for the IF is whether the Valid Email Required font tag exists. It is important to use a Verify/Wait For Exists here, as a different type of verification can result in an Unable To Locate Element failure.
Here's the code from the coded step:
Please run the test and let me know if you encounter any trouble adapting this technique to your test.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items