public override Element FindByCss(string css) { var findStrategy = new CssFindStrategy(css); var nativeElement = _elementFinderService.Find(findStrategy); return(new WebElement(_webDriver, nativeElement, findStrategy.Convert())); }
public override List <Element> FindAllByCss(string css) { var findStrategy = new CssFindStrategy(css); 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); }