Add cookie command

Adds a cookie into the browser cache.

Parameters

Name Type Possible values Description

Device ID*

String

 

The device for this command. By default, this is the device under test (DUT).

Name*

String

 

The name of the cookie.

Value*

String

 

The value of the cookie.

Path

String

 

The path that the cookie is visible to. If left blank, this will be set to /.

Domain

String

 

The domain that the cookie is visible to.

Expiry

String

 

The cookie's expiration date. The expiry value is the date, in milliseconds (Epoch Time), according to the device date.

For example: 1450948962293

Secure

String

 

Specifies whether this cookie requires a secure connection.

Http only

String

 

Specifies whether this cookie is only added for HTTP pages.

Comment

String

 

Adds a comment to the script

On-fail Result*

Condition

Ignore | Break | Continue | Abort | Catch

The behavior when the command fails.

* Mandatory parameter