Function When_I_find_headings_by_text

  • When I find headings by text:

    When I find headings by text {string}
    

    Parameters

    • text: string
    • Optionaloptions: DataTable

    Returns void

    When I find headings by text "Heading"
    

    With options:

    When I find headings by text "Heading"
    | log | true |
    | timeout | 4000 |
    | withinSubject | null |
    | includeShadowDom | false |

    This precedes steps like "When I click". For example:

    When I find headings by text "Heading"
    And I get 1st element
    And I click