Skip to content

Commit

Permalink
adds video on locators
Browse files Browse the repository at this point in the history
  • Loading branch information
tnolet committed Nov 29, 2023
1 parent 736fde9 commit 64156bc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion site/content/docs/browser-checks/scraping-onpage-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ This is a two-step process:
Playwright Test offers many ways to scrape elements like buttons, forms or any arbitrary HTML element. We've listed the most
common ones below, together with some tips on how to use them effectively.

When it comes to assertions, Playwright Test uses Jest's [expect](https://jestjs.io/docs/expect) library. Playwright also extends the `expect` library with it's own, recommended web-first assertions. These will re-fetch an element and check it until the condition is met or the test times out. The full list of web-first assertions can be found [here.](https://playwright.dev/docs/test-assertions#list-of-assertions)
Check out this video for a quick explainer:

{{< youtube 9RJMNU4eNEc >}}


When it comes to assertions, Playwright Test uses Jest's [expect](https://jestjs.io/docs/expect) library. Playwright also extends the `expect`
library with its own, recommended web-first assertions. These will re-fetch an element and check it until the
condition is met or the test times out. The full list of web-first assertions can be found [here.](https://playwright.dev/docs/test-assertions#list-of-assertions)

## Scraping text values

Expand Down

1 comment on commit 64156bc

@vercel
Copy link

@vercel vercel bot commented on 64156bc Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.