-
-
Save angiejones/3d6712497ef85d335fd62d15d21bcb64 to your computer and use it in GitHub Desktop.
Playwright - Use Mocha to verify number of elements
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
const visibleBooksSelector = 'li:not(.ui-screen-hidden)' | |
const visibleBooks = await page.$$(visibleBooksSelector) | |
assert.equal(visibleBooks.length, 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment