public void checkAndAssertForExpectedCondition ( ExpectedCondition < ? > condition ) { if ( ! waitForExpectedCondition ( condition , 0 ) ) { fail ( String . format ( "Element does not meet condition %1$s" , condition . toString ( ) ) ) ; } }
Checks if the expectations are met and throws an assert if not