public static bool IsDivElement(SUIHtmlControlBase ctrl) { bool itis = false; try { IHTMLDivElement span = ctrl.HtmlElement as mshtml.IHTMLDivElement; itis = true; } catch { itis = false; } return(itis); }
public SUIHtmlDiv(SUIHtmlControlBase ctrl) : base(ctrl) { divElement = (IHTMLDivElement)ctrl.HtmlElement; }
public SUIHtmlDiv(SUIHtmlDocument _doc, IHTMLElement _element) : base(_doc, _element) { divElement = (IHTMLDivElement)_element; }
/// <summary> /// Initializes a new instance of the <see cref="Div"/> class. /// Mainly used by WatiN internally. /// </summary> /// <param name="domContainer">The DOM container.</param> /// <param name="htmlDivElement">The HTML div element.</param> public Div(DomContainer domContainer, IHTMLDivElement htmlDivElement) : base(domContainer, (IHTMLElement)htmlDivElement) { }
/// <summary> /// Initializes a new instance of the <see cref="Div"/> class. /// Mainly used by WatiN internally. /// </summary> /// <param name="domContainer">The DOM container.</param> /// <param name="htmlDivElement">The HTML div element.</param> public Div(DomContainer domContainer, IHTMLDivElement htmlDivElement) : base(domContainer, domContainer.NativeBrowser.CreateElement(htmlDivElement)) { }