private ArrayList < TextView > createAndReturnTextViewsFromWebElements ( boolean javaScriptWasExecuted ) { ArrayList < TextView > webElementsAsTextViews = new ArrayList < TextView > ( ) ; if ( javaScriptWasExecuted ) { for ( WebElement webElement : webElementCreator . getWebElementsFromWebViews ( ) ) { if ( isWebElementSufficientlyShown ( webElement ) ) { RobotiumTextView textView = new RobotiumTextView ( inst . getContext ( ) , webElement . getText ( ) , webElement . getLocationX ( ) , webElement . getLocationY ( ) ) ; webElementsAsTextViews . add ( textView ) ; } } } return webElementsAsTextViews ; }
Creates and returns TextView objects based on WebElements