-
-
Save angiejones/53fb0225c8ed0f8433b6793c5923dc60 to your computer and use it in GitHub Desktop.
Playwright - get text from element
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
public List<String> getVisibleBooks(){ | |
return page.querySelectorAll(locator_visibleBookTitles) | |
.stream() | |
.map(e -> e.innerText()) | |
.collect(Collectors.toList()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment