private void validateElementProperty ( String propertyName , String controlValue , String resultValue , TestContext context ) { if ( StringUtils . hasText ( controlValue ) ) { String control = context . replaceDynamicContentInString ( controlValue ) ; if ( ValidationMatcherUtils . isValidationMatcherExpression ( control ) ) { ValidationMatcherUtils . resolveValidationMatcher ( "payload" , resultValue , control , context ) ; } else { Assert . isTrue ( control . equals ( resultValue ) , String . format ( "Selenium web element validation failed, %s expected '%s', but was '%s'" , propertyName , control , resultValue ) ) ; } } }
Validates web element property value with validation matcher support .