getCookie
Retrieve a cookie visible to the current page. You can query a specific cookie by providing the cookie name or retrieve all.
Usage
1 | browser.getCookie([name]); |
Parameters
Param | Type | Details |
---|---|---|
name optional |
String | name of requested cookie |
Example
1 | it('should return a cookie for me', function () { |
Returns
- <Object/null>: requested cookie if existing