Exemple #1
0
 public TItem this[int index]
 {
     get
     {
         var byIndex = ByIndex.FromIndex(index);
         return(GetElementByXPath(byIndex));
     }
 }
Exemple #2
0
 public TItem Last()
 {
     try
     {
         return(GetElementByXPath(ByIndex.FromLast()));
     }
     catch (NoSuchElementException)
     {
         throw new EmptyWebElementCollectionException();
     }
 }
Exemple #3
0
 public TItem First()
 {
     try
     {
         var byIndex = ByIndex.FromIndex(0);
         return(GetElementByXPath(byIndex));
     }
     catch (NoSuchElementException)
     {
         throw new EmptyWebElementCollectionException();
     }
 }
Exemple #4
0
        public TItem FindItemWithText(string text)
        {
            var selector = ByIndex.FromItemText(text);

            return(GetElementByXPath(selector));
        }