Created
September 16, 2014 11:02
-
-
Save lordofthejars/3cc635b465e4ff8a10b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<WebElement> elements = session.findElements(xpath("//table/tbody/tr/td/span[@class='title']")); | |
return elements.stream().map(WebElement::getText).collect(Collectors.toList()); |
yes but you get a 2MB library with a lot of functionalities just for this :S I prefer Java 8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well... you could do that with Guava transformers since years. Not a killer Java 8 feature imho ;)