/// <summary> /// Returns the parent WindForm Form object (note that this is NOT a WatiN.Core.Form object) /// /// This is the same as calling <code>watinIe.HostControl.parentForm()</code> /// </summary> /// <param name="watinIe"></param> /// <returns>System.Windows.Forms.Form</returns> public static System.Windows.Forms.Form parentForm(this WatiN_IE watinIe) { if (watinIe.notNull() && watinIe.HostControl.notNull()) { return(watinIe.HostControl.parentForm()); } return(null); }
public static List <Link> links(this WatiN_IE watinIe) { if (watinIe.notNull() && watinIe.IE.notNull()) { return((from link in watinIe.IE.Links select link).toList()); } return(new List <Link>()); }