Function When_I_get_element_by_selector

  • When I get element by selector:

    When I get element by selector {string}
    

    Get the first DOM element by selector.

    Parameters

    • selector: string
    • Optionaloptions: DataTable

    Returns void

    Yield the first <li> in .list:

    When I get element by selector ".list > li"
    

    With options:

    When I get element by selector ".dropdown-menu"
    | log | true |
    | timeout | 4000 |
    | withinSubject | null |
    | includeShadowDom | false |