public String text ( ) { if ( ! element . is ( ) . present ( ) ) { return null ; } WebElement webElement = element . getWebElement ( ) ; return webElement . getText ( ) ; }
Retrieves the text of the element . If the element isn t present a null value will be returned .