for (WebElement element : elements) {
T htmlElement = HtmlElementFactory.createHtmlElementInstance(htmlElementClass);
htmlElement.setWrappedElement(element);
String htmlElementName = String.format("%s [%d]", name, elementNumber);
htmlElement.setName(htmlElementName);
PageFactory.initElements(new HtmlElementDecorator(element), htmlElement);
htmlElements.add(htmlElement);
elementNumber++;
}
try {