checks if a compoundbutton with a given text is checked . concode_field_sep ViewFetcher viewFetcher concode_elem_sep Waiter waiter concode_field_sep boolean isSpinnerTextSelected concode_elem_sep boolean isSpinnerTextSelected concode_elem_sep boolean isCheckedTextChecked
boolean function ( Class < T > arg0 , String arg1 ) { waiter . waitForView ( arg0 , 0 ) ; ArrayList < T > loc0 = viewFetcher . getCurrentViews ( arg0 ) ; for ( T loc1 : loc0 ) { if ( loc1 . getText ( ) . equals ( arg1 ) && loc1 . isChecked ( ) ) return true ; } return false ; }