Example #1
0
 /// <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");
     }
 }
Example #2
0
 /// <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)
 {
 }
Example #3
0
 /// <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)
 {
 }
Example #4
0
 /// <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)
 {
 }
Example #5
0
 /// <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)
 {
 }
Example #6
0
 /// <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)
 {
 }
Example #8
0
 /// <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)
 {
 }
Example #9
0
 /// <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)
 {
 }
Example #10
0
 /// <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)
 {
 }
Example #11
0
 /// <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);
 }
Example #12
0
 /// <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)
 {
 }
Example #13
0
 /// <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)
 {
 }