Skip to main content

expect

Function expect 

Source
pub fn expect(locator: Locator) -> Expect
Expand description

Create an expectation for a locator (Playwright-style)

Per spec: expect(score_display).to_have_text("10").await?;