Function When_I_find_heading_by_text

  • When I find heading by text:

    When I find heading by text {string}
    

    Finds first heading element that matches text.

    Parameters

    • text: string
    • Optionaloptions: DataTable

    Returns void

    When I find heading by text "Heading"
    

    With options:

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

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

    When I find heading by text "heading"
    And I click