public IEnumerable <Element> FindFrames(string locator, Scope scope, Options options) { return(_frameFinder.FindFrame(locator, scope, options) .Select(BuildElement)); }
public ElementFound FindFrame(string locator, Scope scope) { var element = frameFinder.FindFrame(locator, scope); if (element == null) { throw new MissingHtmlException("Failed to find frame: " + locator); } return(new SeleniumElement(element, webDriver)); }