Beispiel #1
0
 public TItem this[int index]
 {
     get
     {
         var byIndex = ByIndex.FromIndex(index);
         return(GetElementByXPath(byIndex));
     }
 }
Beispiel #2
0
 public TItem First()
 {
     try
     {
         var byIndex = ByIndex.FromIndex(0);
         return(GetElementByXPath(byIndex));
     }
     catch (NoSuchElementException)
     {
         throw new EmptyWebElementCollectionException();
     }
 }