Beispiel #1
0
 /// <summary>
 ///     Creates the named proxy for web element.
 /// </summary>
 /// <param name="locator">The locator.</param>
 /// <param name="elementName">Name of the element.</param>
 /// <returns>The value.</returns>
 public static IWebElement CreateNamedProxyForWebElement(IElementLocator locator, string elementName)
 {
     return(WebElementNamedProxyHandler.NewInstance(locator, elementName));
 }
 /// <summary>
 ///     Finds the first <see cref="T:OpenQA.Selenium.IWebElement" /> using the given method.
 /// </summary>
 /// <param name="by">The locating mechanism to use.</param>
 /// <returns>
 ///     The first matching <see cref="T:OpenQA.Selenium.IWebElement" /> on the current context.
 /// </returns>
 public IWebElement FindElement(By by)
 {
     return(WebElementNamedProxyHandler.NewInstance(new AjaxElementLocator(OriginalDriver, by), string.Empty));
 }