Class Cookie
java.lang.Object
org.openqa.selenium.devtools.v141.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<CookiePartitionKey> 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 PriorityDeprecated.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<CookiePartitionKey> 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
Deprecated.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. -
getPartitionKeyOpaque
True if cookie partition key is opaque.
-