public static List < String > texts ( Collection < WebElement > elements ) { return elements . stream ( ) . map ( ElementsCollection :: getText ) . collect ( toList ( ) ) ; }
Fail - safe method for retrieving texts of given elements .