Playwright Cucumber TS Steps
    Preparing search index...

    Function selectDropdownOption

    • Selects an option from a <select> dropdown menu. Supports fixtures for reusable selectors and options. It first attempts to match by the visible label; if that fails, it tries to match by the underlying value attribute.

      Parameters

      • page: any
      • optionKey: string
      • selectorKey: string

      Returns Promise<void>

      When I pw select option "options.country.canada" from "selectors.countrySelector"