public T getElementToCheckVisibility ( String place ) { return findByTechnicalSelectorOr ( place , ( ) -> { T result = findElement ( TextBy . partial ( place ) ) ; if ( ! IsDisplayedFilter . mayPass ( result ) ) { result = findElement ( ToClickBy . heuristic ( place ) ) ; } return result ; } ) ; }
Finds element to determine whether it is on screen by searching in multiple locations .