Closed on3iro closed 10 months ago
See #278 , you can do this:
expect := playwright.NewPlaywrightAssertions(5000)
require.NoError(t, expect.Page(page1).ToHaveTitle("unkown"))
require.NoError(t, expect.Locator(checkbox1).ToBeChecked())
Locator doesn't wait, you need Web-first assertions,
expect := playwright.NewPlaywrightAssertions(5000) // default timeout 5 senconds
err := expect.Locator(pw.Page.GetByText("Testhousehold")).ToHaveCount(1)
Awesome, thanks! Will definitely check these out.
Hey folks,
Thanks for this great library. I have a few questions I wasn't able to answer by reading the docs. Help would be very appreciated :)
expect
in conjunction with typical playwright assertionstoBeInDocument
etc. internally and you are also exporting aLocatorAssertions
-interface, though I don't understand if and how exactly these are supposed to be used. The recipes from the docs do not seem to use them.Thanks in advance :)