Class CookieParam
java.lang.Object
org.openqa.selenium.devtools.v141.network.model.CookieParam
Cookie parameter object
-
Constructor Summary
ConstructorsConstructorDescriptionCookieParam(String name, String value, Optional<String> url, Optional<String> domain, Optional<String> path, Optional<Boolean> secure, Optional<Boolean> httpOnly, Optional<CookieSameSite> sameSite, Optional<TimeSinceEpoch> expires, Optional<CookiePriority> priority, Optional<Boolean> sameParty, Optional<CookieSourceScheme> sourceScheme, Optional<Integer> sourcePort, Optional<CookiePartitionKey> partitionKey) -
Method Summary
Modifier and TypeMethodDescriptionCookie domain.Cookie expiration date, session cookie if not setTrue if cookie is http-only.getName()Cookie name.Cookie partition key.getPath()Cookie path.Cookie Priority.True if cookie is SameParty.Cookie SameSite type.True if cookie is secure.Cookie source port.Cookie source scheme type.getUrl()The request-URI to associate with the setting of the cookie.getValue()Cookie value.
-
Constructor Details
-
CookieParam
public CookieParam(String name, String value, Optional<String> url, Optional<String> domain, Optional<String> path, Optional<Boolean> secure, Optional<Boolean> httpOnly, Optional<CookieSameSite> sameSite, Optional<TimeSinceEpoch> expires, Optional<CookiePriority> priority, Optional<Boolean> sameParty, Optional<CookieSourceScheme> sourceScheme, Optional<Integer> sourcePort, Optional<CookiePartitionKey> partitionKey)
-
-
Method Details
-
getName
Cookie name. -
getValue
Cookie value. -
getUrl
The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie. -
getDomain
Cookie domain. -
getPath
Cookie path. -
getSecure
True if cookie is secure. -
getHttpOnly
True if cookie is http-only. -
getSameSite
Cookie SameSite type. -
getExpires
Cookie expiration date, session cookie if not set -
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. If not set, the cookie will be set as not partitioned.
-