Playwright Cucumber TS Steps
    Preparing search index...

    Function findElementInFrame

    • Finds an element inside a specific iframe and sets it as the active element. This is the robust way to interact with iframe content (e.g., Stripe forms, embedded videos).

      Parameters

      • page: any
      • elementSelectorKey: string

        The key of the element selector in the fixtures or a raw CSS selector.

      • frameSelectorKey: string

        The key of the iframe selector in the fixtures or a raw CSS selector.

      Returns Promise<void>

      When I pw find element "card-number" in frame "stripe-element"