class

Playwright::BrowserContext::AddCookie

Inherits JSON::Serializable / Reference / Object

Constructors

new(name : String, value : String, url : Nil | String = nil, domain : Nil | String = nil, path : Nil | String = nil, expires : Int64 | Nil = nil, http_only : Bool | Nil = nil, secure : Bool | Nil = nil, same_site : Playwright::BrowserContext::SameSite | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

domain

either url or domain / path are required

Source
domain=(domain : String | Nil)

either url or domain / path are required

Source
expires

Unix time in seconds.

Source
expires=(expires : Int64 | Nil)

Unix time in seconds.

Source
http_only
Source
http_only=(http_only : Bool | Nil)
Source
name

required

Source
name=(name : String)

required

Source
path

either url or domain / path are required

Source
path=(path : String | Nil)

either url or domain / path are required

Source
same_site
Source
same_site=(same_site : SameSite | Nil)
Source
secure
Source
secure=(secure : Bool | Nil)
Source
url

either url or domain / path are required

Source
url=(url : String | Nil)

either url or domain / path are required

Source
value

required

Source
value=(value : String)

required

Source