Skip to content

Instantly share code, notes, and snippets.

@angiejones
Last active September 11, 2020 21:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save angiejones/80472de480f646bb86b2eed399dbb322 to your computer and use it in GitHub Desktop.
Playwright - wait for element to be present
it('should return one book when exact title is given', async () => {
await page.fill('#searchBar', 'Agile Testing')
await page.waitForSelector('li.ui-screen-hidden', { state: 'attached' })
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment