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