Function When_I_find_textarea_by_label_text

  • When I find textarea by label text:

    When I find textarea by label text {string}
    

    Finds the first textarea element that matches the label text.

    Parameters

    • text: string
    • Optionaloptions: DataTable

    Returns void

    When I find textarea by label text "Comments"
    

    With options:

    When I find textarea by label text "Comments"
    | log | true |
    | timeout | 4000 |
    | withinSubject | null |
    | includeShadowDom | false |
    | pseudoSelector | visible |

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

    When I find textarea by label text "Comments"
    And I type "Lorem ipsum"

    Inspired by Testing Library's ByLabelText.