Playwright Cucumber TS Steps
    Preparing search index...
    • A "Swiss Army Knife" function for filling forms, performing assertions, and executing mixed workflows. Iterates through a Data Table and performs actions based on the Target and Value columns.

      Parameters

      • page: any
      • formName: string

        A descriptive name for the form being filled (used for logging only).

      • table: any

        The Data Table provided in the step definition.

      Returns Promise<void>

      When I pw fill the following "Login Flow" form data:

      | Target                  | Value                |
      | login.usernameField | myuser |
      | login.passwordField | \{@link @secretPassword\ |
      | login.submitButton | click |
      | wait | wait:500 |
      | .error-msg | assert:visible |
      | request:GET:/api/status | body: {} |