scrapy-plugins / scrapy-playwright

🎭 Playwright integration for Scrapy
BSD 3-Clause "New" or "Revised" License
1.03k stars 113 forks source link

expect(locator) not supported? #301

Closed crimsonduelist closed 4 months ago

crimsonduelist commented 4 months ago

I m trying to use the (locator.1)or_(locator) like in the example here https://playwright.dev/python/docs/api/class-locator#locator-or i.e. with Locator Assertions https://playwright.dev/python/docs/api/class-locatorassertions but name 'expect' is not defined ??

elacuesta commented 4 months ago

Have you imported it? From the link you shared:

from playwright.async_api import Page, expect
crimsonduelist commented 4 months ago

Have you imported it? From the link you shared:

from playwright.async_api import Page, expect

f, duh, thanks and sry for the bother intellisense in vscode wasnt seeing it - It was seeing Expect