Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addcookie doesn't work with 90.0.818.46 #45

Closed
popyoung opened this issue Apr 23, 2021 · 2 comments
Closed

addcookie doesn't work with 90.0.818.46 #45

popyoung opened this issue Apr 23, 2021 · 2 comments

Comments

@popyoung
Copy link

After I updated from 89 to 90, the original code throws an exception.

OpenQA.Selenium.InvalidCookieDomainException:“invalid cookie domain: Cookie 'domain' mismatch
(Session info: MicrosoftEdge=90.0.818.46)”

@popyoung
Copy link
Author

The reason has been found, because of restrictions SameSite. I loaded the cookie without first navigating the corresponding domain name. It may be that SameSite has been restricted after 90 version, or the website I visited has strengthened restrictions, but it happened that I upgraded the 90 version.

@bwalderman
Copy link
Contributor

@popyoung this is a known issue with the WebDriver spec. For details see w3c/webdriver#1238

I'm going to close this issue since this repo is now deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants