Playwright Cucumber TS Steps
    Preparing search index...

    Function expectElementToHaveExactText

    • Asserts that an element exactly matches the specified text (case-sensitive). Supports fixtures for reusable selectors and text values.

      Parameters

      • page: any

        The Playwright page object

      • selectorKey: string

        The selector key (can be a fixture key or raw CSS selector)

      • textKey: string

        The text key (can be a fixture key or raw text)

      Returns Promise<void>

      Then I pw see exact element text "Welcome Home"