public void selectValues ( String ... expectedValues ) { String [ ] values = checkSelectValues ( expectedValues , 0 , 0 ) ; String reason = NO_ELEMENT_FOUND ; if ( values == null && getElement ( ) . is ( ) . present ( ) ) { reason = ELEMENT_NOT_SELECT ; } assertNotNull ( reason , values ) ; assertEquals ( "Selected Values Mismatch" , Arrays . asList ( expectedValues ) , Arrays . asList ( values ) ) ; }
Asserts that the element s select values equal the provided expected values . If the element isn t present or a select this will constitute a failure same as a mismatch . This information will be logged and recorded with a screenshot for traceability and added debugging support .