Playwright Cucumber TS Steps
    Preparing search index...
    • Iterates through a provided Data Table to fill inputs, click elements, or perform assertions. This function is designed for bulk form interaction without writing repetitive "When I..." steps.

      Parameters

      • page: any
      • formName: string

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

      • tableData: string[][]

        A 2D array representing the data table rows.

      Returns Promise<void>

      When I pw fill the following "Login" test 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: {} |

      Supported Values in Column 2:

      • Any String: Fills the input found by the selector in Column 1.
      • "click": Clicks the element.
      • "check": Checks a checkbox or radio button.
      • "assert:visible": Asserts that the element is visible.
      • "assert:text:EXPECTED": Asserts that the element contains the specific text.

      If the Data Table is missing or invalid.