Class Cookie
java.lang.Object
org.openqa.selenium.devtools.v117.network.model.Cookie
Cookie object
-
Constructor Summary
ConstructorsConstructorDescriptionCookie(String name, String value, String domain, String path, Number expires, Integer size, Boolean httpOnly, Boolean secure, Boolean session, Optional<CookieSameSite> sameSite, CookiePriority priority, Boolean sameParty, CookieSourceScheme sourceScheme, Integer sourcePort, Optional<String> partitionKey, Optional<Boolean> partitionKeyOpaque) -
Method Summary
Modifier and TypeMethodDescriptionCookie domain.Cookie expiration date as the number of seconds since the UNIX epoch.True if cookie is http-only.getName()Cookie name.Cookie partition key.True if cookie partition key is opaque.getPath()Cookie path.Cookie PriorityTrue if cookie is SameParty.Cookie SameSite type.True if cookie is secure.True in case of session cookie.getSize()Cookie size.Cookie source port.Cookie source scheme type.getValue()Cookie value.
-
Constructor Details
-
Cookie
public Cookie(String name, String value, String domain, String path, Number expires, Integer size, Boolean httpOnly, Boolean secure, Boolean session, Optional<CookieSameSite> sameSite, CookiePriority priority, Boolean sameParty, CookieSourceScheme sourceScheme, Integer sourcePort, Optional<String> partitionKey, Optional<Boolean> partitionKeyOpaque)
-
-
Method Details
-
getName
Cookie name. -
getValue
Cookie value. -
getDomain
Cookie domain. -
getPath
Cookie path. -
getExpires
Cookie expiration date as the number of seconds since the UNIX epoch. -
getSize
Cookie size. -
getHttpOnly
True if cookie is http-only. -
getSecure
True if cookie is secure. -
getSession
True in case of session cookie. -
getSameSite
Cookie SameSite type. -
getPriority
Cookie Priority -
getSameParty
True if cookie is SameParty. -
getSourceScheme
Cookie source scheme type. -
getSourcePort
Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future. -
getPartitionKey
Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. -
getPartitionKeyOpaque
True if cookie partition key is opaque.
-