public RemoteWebElement getElement ( ) { RemoteWebElement foundElement = null ; try { if ( parent == null ) { foundElement = HtmlElementUtils . locateElement ( getLocator ( ) ) ; } else { foundElement = parent . locateChildElement ( locator ) ; } } catch ( ParentNotFoundException p ) { throw p ; } catch ( NoSuchElementException n ) { addInfoForNoSuchElementException ( n ) ; } return foundElement ; }
Instance method used to call static class method locateElement .