Function When_I_set_cookie

  • When I set cookie:

    When I set cookie {string} to {string}
    

    Parameters

    • name: string
    • value: string
    • Optionaloptions: DataTable

    Returns void

    Set a browser cookie:

    When I set cookie "name" to "value"
    

    With options:

    When I set cookie "name" to "value"
    | log | true |
    | domain | example.com |
    | expiry | 1234567890 |
    | hostOnly | false |
    | httpOnly | false |
    | path | / |
    | secure | false |
    | timeout | 3000 |
    | sameSite | undefined |