webd:cookie

Purpose

Contains elements that allow cookies to be created or copied. The domain, maxage, path and secure attributes are evaluated by the driver to see if the cookie should be passed on. There are also element forms for the attribute values.

Contained by

Attributes

Attribute Description Type Default Options Use
domain The domain for which this cookie is valid. xs:string none    optional 
from Name of cookie to be copied from. xs:string none    optional 
maxage The maximum age of the cookie in seconds. xs:double none    optional 
name Name of the cookie. xs:string none    optional 
path The path for which a cookie is valid. xs:string none    optional 
secure Indicates whether the cookie should only be sent over HTTPS. xs:boolean none    optional 
value Value of the cookie. xs:string none    optional 

Example

The example shows the element forms of the attributes.

<webd:cookie>
  <webd:name>user</webd:name>
  <webd:domain>http://www.example.com</webd:domain>
  <webd:path>/login</webd:path>
  <webd:maxage>100</webd:maxage>
  <webd:secure>true</webd:secure>
  <webd:value>userpage</webd:value>
</webd:cookie>

Related topics