public static DialogWatcher getDialogWatcher(this WatiN_IE watinIe) { if (watinIe.isNull() || watinIe.IE.isNull()) { return(null); } watinIe.setDialogWatcher(); return(watinIe.IE.DialogWatcher); }
public static List <IDialogHandler> dialogHandlers(this WatiN_IE watinIe) { watinIe.setDialogWatcher(); // make sure this is set var dialogHandlers = (IList <IDialogHandler>)watinIe.IE.DialogWatcher.field("_handlers"); if (dialogHandlers.notNull()) { return(dialogHandlers.toList()); } return(new List <IDialogHandler>()); }