public View getIdenticalView ( View view ) { if ( view == null ) { return null ; } View viewToReturn = null ; List < ? extends View > visibleViews = RobotiumUtils . removeInvisibleViews ( getCurrentViews ( view . getClass ( ) , true ) ) ; for ( View v : visibleViews ) { if ( areViewsIdentical ( v , view ) ) { viewToReturn = v ; break ; } } return viewToReturn ; }
Returns an identical View to the one specified .