protected boolean checkInputText ( PageElement pageElement , String textOrKey ) throws FailureException , TechnicalException { WebElement inputText = null ; String value = getTextOrKey ( textOrKey ) ; try { inputText = Context . waitUntil ( ExpectedConditions . presenceOfElementLocated ( Utilities . getLocator ( pageElement ) ) ) ; } catch ( final Exception e ) { new Result . Failure <> ( e . getMessage ( ) , Messages . getMessage ( Messages . FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT ) , true , pageElement . getPage ( ) . getCallBack ( ) ) ; } return ! ( inputText == null || value == null || inputText . getAttribute ( VALUE ) == null || ! value . equals ( inputText . getAttribute ( VALUE ) . trim ( ) ) ) ; }
Checks if input text contains expected value .