Function When_I_find_element_by_title

  • When I find element by title:

    When I find element by title {string}
    

    Finds the first element that has a matching title attribute. This will also find a title element within an SVG.

    Parameters

    • title: string

    Returns void

    When I find element by title "Close"
    

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

    When I find element by title "Close"
    And I click

    Inspired by Testing Library's ByTitle.