class Playwright::BrowserContext::AddCookie
- Playwright::BrowserContext::AddCookie
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
playwright/browsercontext.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#domain : String | Nil
either url or domain / path are required
-
#domain=(domain : String | Nil)
either url or domain / path are required
-
#expires : Int64 | Nil
Unix time in seconds.
-
#expires=(expires : Int64 | Nil)
Unix time in seconds.
- #http_only : Bool | Nil
- #http_only=(http_only : Bool | Nil)
-
#name : String
required
-
#name=(name : String)
required
-
#path : String | Nil
either url or domain / path are required
-
#path=(path : String | Nil)
either url or domain / path are required
- #same_site : SameSite | Nil
- #same_site=(same_site : SameSite | Nil)
- #secure : Bool | Nil
- #secure=(secure : Bool | Nil)
-
#url : String | Nil
either url or domain / path are required
-
#url=(url : String | Nil)
either url or domain / path are required
-
#value : String
required
-
#value=(value : String)
required
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)
#