Description
In chapter 14. Cookies, section 14.3 Add Cookie:
Create a cookie in the cookie store associated with the active document’s address using cookie name name, cookie value value, and an attribute-value list of the following cookie concepts listed in the table for cookie conversion from data:
..
If there is an error during this step, return error with error code unable to set cookie.
It's not that clear by the spec if the cookie should not be set and success
returned (as currently done by chromedriver), or similar to other commands a proper error (unable to set cookie
) being returned.
If we wont return an error, and the cookie isn't set the webpage/app under test might misbehave at some point. It would not be clear why, and investigation isn't that trivial.
@JohnChen0, @burg, @shs96c what is your take here?