Hi,
I am writing a test script using MS test and Webaii in which i have to fill in a application form.On the save of the form the system checks for the mandatory feilds if not prompts a javascript alert message that the mandatory feilds a,b,c are not filled.
I need to capture and log this step in my code test
I did the floowing to try capture the script alert
I am writing a test script using MS test and Webaii in which i have to fill in a application form.On the save of the form the system checks for the mandatory feilds if not prompts a javascript alert message that the mandatory feilds a,b,c are not filled.
I need to capture and log this step in my code test
I did the floowing to try capture the script alert
Settings.Current.UnexpectedDialogAction = UnexpectedDialogAction.HandleAndFailTest;
manager.DialogMonitor.Start();
// Attempted to check if the line below captures the dialog
int counter= manager.DialogMonitor.Dialogs.Count;
//This actually adds a dialog --- not what is needed
manager.DialogMonitor.AddDialog(new AlertDialog(manager.ActiveBrowser,DialogButton.OK));
Any help appreciated