// Control Extensionmethods public static WatiN_IE add_IE(this Control control) { try { return(WatiN_IE.window(control)); } catch (Exception ex) { ex.log(); return(null); } }
// Control Extensionmethods /// <summary> /// Adds an embeded WatiN_IE control to the provided WinForms Control object /// </summary> /// <param name="control">This should be a Panel or another similar Control that can host controls</param> /// <returns>Watin_IE object</returns> public static WatiN_IE add_IE(this Control control) { try { var ie = WatiN_IE.window(control); ie.open("about:blank"); // open about:blank so that the IE object is left in a stable condition //ie.showMessage(DEFAULT_IE_MESSAGE); // show an message so that the IE object is left in a stable condition return(ie); } catch (Exception ex) { ex.log(); return(null); } }