@ When ( "^I de-select every item on the element on index '(\\d+?)'$" ) public void elementDeSelect ( Integer index ) { Select sel = null ; sel = new Select ( commonspec . getPreviousWebElements ( ) . getPreviousWebElements ( ) . get ( index ) ) ; if ( sel . isMultiple ( ) ) { sel . deselectAll ( ) ; } }
Choose no option from a select webelement found previously