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

            return(GetElementByXPath(selector));
        }