verbal-limeV
Apify & Crawlee3y ago
3 replies
verbal-lime

How to use Playwright locator assertions in Crawlee?

In Selenium, we can check for element visibility by either using a
WebDriverWait
or just manually checking for the element, and in playwright this is done through
expect
assertions, while we can wait for an element using
waitForSelector
and using an appropriate timeout, i couldn't find a way to use
expect
location assertions inside the crawler.

Is there a way I can use them?

ref: https://playwright.dev/docs/api/class-page#page-get-by-title
* extends: [EventEmitter]
Page | Playwright
Was this page helpful?