MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Cookie

Method Cookie

java/src/org/openqa/selenium/bidi/network/Cookie.java:68–87  ·  view source on GitHub ↗
(
      String name,
      BytesValue value,
      @Nullable String domain,
      @Nullable String path,
      @Nullable Long size,
      boolean isSecure,
      boolean httpOnly,
      @Nullable SameSite sameSite,
      Optional<Long> expiry)

Source from the content-addressed store, hash-verified

66 private final Optional<Long> expiry;
67
68 public Cookie(
69 String name,
70 BytesValue value,
71 @Nullable String domain,
72 @Nullable String path,
73 @Nullable Long size,
74 boolean isSecure,
75 boolean httpOnly,
76 @Nullable SameSite sameSite,
77 Optional<Long> expiry) {
78 this.name = name;
79 this.value = value;
80 this.domain = domain;
81 this.path = path;
82 this.size = size;
83 this.isSecure = isSecure;
84 this.isHttpOnly = httpOnly;
85 this.sameSite = sameSite;
86 this.expiry = expiry;
87 }
88
89 public static Cookie fromJson(JsonInput input) {
90 String name = null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected