public override Element FindByTag(string tag) { var byStrategy = new ByTagStrategy(tag); var nativeElement = _nativeElementFinderService.Find(byStrategy); return(new WebElement(_webDriver, nativeElement, byStrategy.Convert())); }
public override List <Element> FindAllByTag(string tag) { var byStrategy = new ByTagStrategy(tag); 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); }