Skip to content

Instantly share code, notes, and snippets.

@angiejones
Last active September 11, 2020 20:15
Show Gist options
  • Save angiejones/33b6cf07a72b8c954032d659bf0c6fa2 to your computer and use it in GitHub Desktop.
Save angiejones/33b6cf07a72b8c954032d659bf0c6fa2 to your computer and use it in GitHub Desktop.
Playwright - get list of elements
const visibleBooksSelector = 'li:not(.ui-screen-hidden)'
const visibleBooks = await page.$$(visibleBooksSelector)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment