Пример #1
0
 public static ItemBy FixedByAttribute(this XPathBy xPathBy, string name)
 {
     return(xPathBy.WithAttribute(name).FixedBy((xpath, e, i) => xpath.WithAttribute(name, e.GetAttribute(name))));
 }
Пример #2
0
 public static ItemBy FixedByIndex(this XPathBy xPathBy)
 {
     return(xPathBy.FixedBy((xpath, e, i) => xpath.WithIndex(i)));
 }
Пример #3
0
 public static ItemBy FixedBy(this XPathBy xPathBy, Func <XPathBy, IWebElement, int, By> fix)
 {
     return(new ItemBy(xPathBy, (e, i) => fix(xPathBy, e, i)));
 }