Function When_I_find_element_by_selector

  • When I find element by selector:

    When I find element by selector {string}
    

    Get the descendent DOM elements of a specific selector.

    The querying behavior of this command matches exactly how .find() works in jQuery.

    Parameters

    • selector: string

    Returns void

    Find the element with the class banner:

    When I find element by selector ".banner"
    

    A preceding step like "When I find form" is required. For example:

    When I find form
    And I find element by selector "input[type='checkbox']"
    And I click