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