Playwright Cucumber TS Steps
    Preparing search index...

    Function clickElementBySelector

    • Clicks on an element matching the given CSS/XPath selector. Supports fixtures for reusable selectors.

      Parameters

      • page: any

        The Playwright page object

      • selectorKey: string

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

      • Optionaltable: any

        Optional table data for click options

      Returns Promise<void>

      When I pw click on element ".my-element"
      When I pw click on element "login.submitButton"