public List<WebElement> findElementsByClassName(String using) {
if (using == null)
throw new IllegalArgumentException("Cannot find elements when the class name expression is null.");
if (using.matches(".*\\s+.*")) {
throw new IllegalLocatorException(
"Compound class names are not supported. Consider searching for one class name and filtering the results.");
}
PointerByReference elements = new PointerByReference();
int result = lib.wdFindElementsByClassName(driver, element, new WString(using), elements);