public List < WebElement > getElements ( ) { List < WebElement > foundElements = null ; try { if ( parent == null ) { foundElements = HtmlElementUtils . locateElements ( getLocator ( ) ) ; } else { foundElements = parent . locateChildElements ( getLocator ( ) ) ; } } catch ( NoSuchElementException n ) { addInfoForNoSuchElementException ( n ) ; } return foundElements ; }
Instance method used to call static class method locateElements .