Exemplo n.º 1
0
 public IEnumerable <Element> FindFrames(string locator,
                                         Scope scope,
                                         Options options)
 {
     return(_frameFinder.FindFrame(locator, scope, options)
            .Select(BuildElement));
 }
Exemplo n.º 2
0
        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));
        }