Function When_I_find_elements_by_placeholder_text

  • When I find elements by placeholder text:

    When I find elements by placeholder text {string}
    

    A placeholder is not a good substitute for a label so you should generally use "When I find element by label text" instead.

    Parameters

    • placeholderText: string

    Returns void

    When I find element by placeholder text "Text"
    

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

    When I find elements by placeholder text "Name"
    And I get 1st element
    And I type "John Smith"

    Inspired by Testing Library's ByPlaceholderText.