コード例 #1
0
ファイル: By.cs プロジェクト: huoxudong125/Smallcode.Net
 /// <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);
 }
コード例 #2
0
ファイル: By.cs プロジェクト: huoxudong125/Smallcode.Net
 /// <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);
 }