public String value ( ) { if ( ! element . is ( ) . present ( ) || ! element . is ( ) . input ( ) ) { return null ; } WebElement webElement = element . getWebElement ( ) ; return webElement . getAttribute ( VALUE ) ; }
Retrieves the value of the element . If the element isn t present or isn t an input a null value will be returned .