Example #1
0
 /// <summary>
 /// Finds all elements matching the criteria.
 /// </summary>
 /// <param name="context">An <see cref="Smallcode.Net.Html"/> object to use to search for the elements.</param>
 /// <returns>A <see cref="ReadOnlyCollection{T}"/> of all <see cref="Smallcode.Net.Html">WebElements</see>
 /// matching the current criteria, or an empty list if nothing matches.</returns>
 public virtual ReadOnlyCollection<Html> FindElements(Html context)
 {
     return _findElementsMethod(context);
 }
Example #2
0
 /// <summary>
 /// Finds the first element matching the criteria.
 /// </summary>
 /// <param name="context">An <see cref="Smallcode.Net.Html"/> object to use to search for the elements.</param>
 /// <returns>The first matching <see cref="Smallcode.Net.Html"/> on the current context.</returns>
 public virtual Html FindElement(Html context)
 {
     return _findElementMethod(context);
 }