Skip to content

Instantly share code, notes, and snippets.

@angiejones
Last active January 29, 2021 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angiejones/fa413dae21f67c0b76e6cd2f3b3db735 to your computer and use it in GitHub Desktop.
Save angiejones/fa413dae21f67c0b76e6cd2f3b3db735 to your computer and use it in GitHub Desktop.
Playwright - wait
public void search(String query) {
page.fill(locator_searchBar, query);
var expectedState = new Page.WaitForSelectorOptions().withState(ATTACHED);
page.waitForSelector(locator_hiddenBooks,expectedState);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment