cookie
Protocol binding to operate with cookies on the current page.
Usage
1 | browser.cookie([method][,args]); |
Parameters
Param | Type | Details |
---|---|---|
method optional |
String | request method |
args optional |
Object/String= | contains cookie information if you want to set a cookie or contains name of cookie if you want to delete it |
Example
1 | it('should get/set cookies using protocol command', function () { |
Returns
- <Object>: cookie data