return elements;
}
public WebElement findElementById(String id) {
if (!(lastPage() instanceof HtmlPage)) {
throw new NoSuchElementException("Cannot find element by id for " + lastPage());
}
try {
HtmlElement element = ((HtmlPage) lastPage()).getHtmlElementById(id);
return newHtmlUnitWebElement(element);
} catch (ElementNotFoundException e) {
throw new NoSuchElementException("Cannot find element with ID: " + id);
}
}