class Playwright::BrowserContext::AddCookie

Included Modules

Defined in:

playwright/browsercontext.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def domain : String | Nil #

either url or domain / path are required


[View source]
def domain=(domain : String | Nil) #

either url or domain / path are required


[View source]
def expires : Int64 | Nil #

Unix time in seconds.


[View source]
def expires=(expires : Int64 | Nil) #

Unix time in seconds.


[View source]
def http_only : Bool | Nil #

[View source]
def http_only=(http_only : Bool | Nil) #

[View source]
def name : String #

required


[View source]
def name=(name : String) #

required


[View source]
def path : String | Nil #

either url or domain / path are required


[View source]
def path=(path : String | Nil) #

either url or domain / path are required


[View source]
def same_site : SameSite | Nil #

[View source]
def same_site=(same_site : SameSite | Nil) #

[View source]
def secure : Bool | Nil #

[View source]
def secure=(secure : Bool | Nil) #

[View source]
def url : String | Nil #

either url or domain / path are required


[View source]
def url=(url : String | Nil) #

either url or domain / path are required


[View source]
def value : String #

required


[View source]
def value=(value : String) #

required


[View source]