public boolean input ( ) { boolean isInput = false ; try { WebElement webElement = element . getWebElement ( ) ; if ( "input" . equalsIgnoreCase ( webElement . getTagName ( ) ) || "textarea" . equalsIgnoreCase ( webElement . getTagName ( ) ) || SELECT . equalsIgnoreCase ( webElement . getTagName ( ) ) ) { isInput = true ; } } catch ( NoSuchElementException e ) { log . info ( e ) ; } return isInput ; }
Determines whether the element is an input or not . An input could be an input element a textarea or a select