예제 #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)));
 }