/// <summary> /// Creates the named proxy for web element list. /// </summary> /// <param name="locator">The locator.</param> /// <param name="listName">Name of the list.</param> /// <returns>The value.</returns> internal static object CreateNamedProxyForWebElementList(IElementLocator locator, string listName) { return(WebElementListNamedProxyHandler.NewInstance(locator, listName)); }
/// <summary> /// Finds all <see cref="T:OpenQA.Selenium.IWebElement">IWebElements</see> within the current context. /// using the given mechanism. /// </summary> /// <param name="by">The locating mechanism to use.</param> /// <returns> /// A <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1" /> of all /// <see cref="T:OpenQA.Selenium.IWebElement">WebElements</see> /// matching the current criteria, or an empty list if nothing matches. /// </returns> public ReadOnlyCollection <IWebElement> FindElements(By by) { return (new ReadOnlyCollection <IWebElement>( WebElementListNamedProxyHandler.NewInstance(new AjaxElementLocator(OriginalDriver, by), string.Empty))); }