throw new HtmlElementsException(e);
}
}
public static WebElement createNamedProxyForWebElement(ClassLoader loader, ElementLocator locator, String name) {
InvocationHandler handler = new WebElementNamedProxyHandler(locator, name);
return (WebElement) Proxy.newProxyInstance(loader,
new Class[]{WebElement.class, WrapsElement.class, Locatable.class}, handler);
}