public override Element FindByXPath(string xpath) { var findStrategy = new XPathFindStrategy(xpath); var nativeElement = _elementFinderService.Find(findStrategy); return(new WebElement(_webDriver, nativeElement, findStrategy.Convert())); }
public override List <Element> FindAllByXPath(string xpath) { var findStrategy = new XPathFindStrategy(xpath); var nativeElements = _elementFinderService.FindAll(findStrategy); var resultElements = new List <Element>(); foreach (var nativeElement in nativeElements) { resultElements.Add(new WebElement(_webDriver, nativeElement, findStrategy.Convert())); } return(resultElements); }