Class CookieParam
java.lang.Object
org.openqa.selenium.devtools.v150.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<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.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<CookieSourceScheme> sourceScheme, Optional<Integer> sourcePort, Optional<CookiePartitionKey> partitionKey)
-
-
Method Details
-
getName
Cookie name. -
getValue
Cookie value. -
getUrl
-
getDomain
-
getPath
-
getSecure
-
getHttpOnly
-
getSameSite
Cookie SameSite type. -
getExpires
Cookie expiration date, session cookie if not set -
getPriority
Cookie Priority. -
getSourceScheme
Cookie source scheme type. -
getSourcePort
-
getPartitionKey
Cookie partition key. If not set, the cookie will be set as not partitioned.
-