diff --git a/lib/PuppeteerSharp.Tests/CookiesTests/SetCookiesTests.cs b/lib/PuppeteerSharp.Tests/CookiesTests/SetCookiesTests.cs
index 26a7f5363..f3b6cdb76 100644
--- a/lib/PuppeteerSharp.Tests/CookiesTests/SetCookiesTests.cs
+++ b/lib/PuppeteerSharp.Tests/CookiesTests/SetCookiesTests.cs
@@ -134,7 +134,9 @@ await Page.SetCookieAsync(new CookieParam
Value = "123456",
Domain = "localhost",
Path = "/",
+#pragma warning disable CS0618 // SameParty is deprecated
SameParty = false,
+#pragma warning restore CS0618
Expires = -1,
HttpOnly = false,
Secure = false,
diff --git a/lib/PuppeteerSharp/Bidi/BidiCookieHelper.cs b/lib/PuppeteerSharp/Bidi/BidiCookieHelper.cs
index 6f7036661..d998444f2 100644
--- a/lib/PuppeteerSharp/Bidi/BidiCookieHelper.cs
+++ b/lib/PuppeteerSharp/Bidi/BidiCookieHelper.cs
@@ -80,10 +80,12 @@ public static PartialCookie PuppeteerToBidiCookie(CookieParam cookie, string dom
}
// Add CDP-specific properties if needed
+#pragma warning disable CS0618 // SameParty is deprecated
if (cookie.SameParty.HasValue)
{
bidiCookie.AdditionalData["goog:sameParty"] = cookie.SameParty.Value;
}
+#pragma warning restore CS0618
if (cookie.SourceScheme.HasValue)
{
diff --git a/lib/PuppeteerSharp/CookieParam.cs b/lib/PuppeteerSharp/CookieParam.cs
index a3739fab0..cb73e2f2f 100644
--- a/lib/PuppeteerSharp/CookieParam.cs
+++ b/lib/PuppeteerSharp/CookieParam.cs
@@ -1,3 +1,4 @@
+using System;
using System.Text.Json.Serialization;
using PuppeteerSharp.Helpers.Json;
@@ -82,8 +83,9 @@ public class CookieParam
public CookiePriority? Priority { get; set; }
///
- /// True if cookie is SameParty. Supported only in Chrome.
+ /// Always set to false. Supported only in Chrome.
///
+ [Obsolete("SameParty is deprecated and always ignored.")]
public bool? SameParty { get; set; }
///