public override Element FindById(string id) { var byStrategy = new ByIdStrategy(id); var nativeElement = _nativeElementFinderService.Find(byStrategy); return(new WebElement(_webDriver, nativeElement, byStrategy.Convert())); }
public override List <Element> FindAllById(string id) { var byStrategy = new ByIdStrategy(id); var nativeElements = _nativeElementFinderService.FindAll(byStrategy); var resultElements = new List <Element>(); foreach (var nativeElement in nativeElements) { resultElements.Add(new WebElement(_webDriver, nativeElement, byStrategy.Convert())); } return(resultElements); }