boolean function ( AppiumDriver < WebElement > arg0 , String arg1 ) { boolean loc0 = false ; List < WebElement > loc1 = getArticleDateList ( arg0 ) ; int loc2 = loc1 . loc2 ( ) ; for ( int loc3 = 0 ; loc3 < loc2 ; loc3 ++ ) { String loc4 = loc1 . get ( loc3 ) . getText ( ) ; if ( loc4 . equalsIgnoreCase ( arg1 ) ) { loc0 = true ; } } return loc0 ; }
validate article date by checking whether the date provided is displayed in the list view . note : you need to set a specific date for the test article and should be used as a parameter in the method . concode_field_sep UtilityActionHelper actionHelper concode_field_sep List<WebElement> articleList concode_elem_sep String[] getArticleTitleList concode_elem_sep List<WebElement> getArticleDateList