/// <summary> /// This constructor is mainly used from within WatiN. /// </summary> /// <param name="element">The element.</param> /// <param name="elementTags">The element tags the element should match with.</param> public Element(Element element, ArrayList elementTags) { if (ElementTag.IsValidElement(element.htmlElement, elementTags)) { init(element.domContainer, element.element, element.elementFinder); } else { throw new ArgumentException(String.Format("Expected element {0}", ElementFinder.GetExceptionMessage(elementTags)), "element"); } }
/// <summary> /// Initialises a new instance of the <see cref="Span"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> public Span(Element element) : base(element, ElementTags) { }
/// <summary> /// Initialises a new instance of the <see cref="RadioCheck"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> /// <param name="elementTags">The element tags the element should match with.</param> public RadioCheck(Element element, ArrayList elementTags) : base(element, elementTags) { }
/// <summary> /// Initialises a new instance of the <see cref="RadioButton"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> public RadioButton(Element element) : base(element, ElementTags) { }
/// <summary> /// Initialises a new instance of the <see cref="Div"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> public Div(Element element) : base(element, ElementTags) { }
/// <summary> /// Initialises a new instance of the <see cref="SelectList"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> public SelectList(Element element) : base(element, ElementTags) { }
public ElementsContainer(Element element, ArrayList elementTags) : base(element, elementTags) { }
/// <summary> /// Initialises a new instance of the <see cref="TextField"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> public TextField(Element element) : base(element, ElementTags) { }
/// <summary> /// Initialises a new instance of the <see cref="CheckBox"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> public CheckBox(Element element) : base(element, ElementTags) { }
/// <summary> /// Initializes a new instance of the <see cref="For"/> class. /// </summary> /// <param name="element">The element to which the Label element is attached. This element must an Id value.</param> public For(Element element) : base(attributeName, element.Id) { }
/// <param name="element">The element to which the Label element is attached. This element must an Id value.</param> /// <returns><see cref="For" /></returns> /// <example> /// <code> /// CheckBox checkbox = ie.CheckBox("checkboxid"); /// ie.Label(Find.ByFor(checkbox).Text</code> /// </example> public static For ByFor(Element element) { return new For(element); }
/// <summary> /// Initialises a new instance of the <see cref="Option"/> class based on <paramref name="element"/>. /// </summary> /// <param name="element">The element.</param> public Option(Element element) : base(element, ElementTags) { }