views:

260

answers:

1

How do you Webaii guys out there handle javascript confirm popup's?

I can't find a ConfirmDialog class in ArtOfTest.WebAii.Win32.Dialogs, and if I try to use AlertDialog instead I get an ArgumentException due to validation rules in the ctor for the AlertDialog class: "System.ArgumentException : Alert dialog can only be dismissed using an OK or CLOSE buttons"

My codesnippet:

Manager.DialogMonitor.AddDialog(new AlertDialog(ActiveBrowser, DialogButton.CANCEL)); Manager.DialogMonitor.Start();

+1  A: 

You can do your own custom dialog handling in WebAii:

http://www.artoftest.com/support/webaii/topicsindex.aspx?topic=customdialogs

Faris