-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Add cookie exception when dot exists before domain name #4861
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
Comments
|
Actually, WebDriver spec defines the add cookie logic:
So the behavior is defined. If you think it's incorrect one, please raise an issue for specification. Once the specification is changed, drivers will adopt the new behavior. P.S. I also checked that you can add cookie with |
Alex,
To be clear I was simply storing all cbc cookies on the first visit and
adding all the cookies cbc.ca gave me back in the second session and I get
that exception. If you think that should be the expected behavior, I
respect your decision.
Regards
Alex
tech.jahtoe.com
bafila.jahtoe.com
…On Mon, Oct 16, 2017 at 5:07 AM, Alex Rodionov ***@***.***> wrote:
Closed #4861 <#4861>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4861 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGMa37rDUOK9MdcqW4C_5oKJsg_wmap3ks5ssuSbgaJpZM4P3jo3>
.
|
@p0deje, hello, I got exactly the same problem. here is some log for what happened in my case. any help would be appreciated. OS: Ubuntu 17.04 |
I have ths same issue (I can read a cookie but not set that same cookie via Selenium). It's easy to workaround using javascript. Here is an example using python: parts = ["{}={}".format(cookie['name'], cookie['value'])]
for k, v in cookie.items():
if k in ['name', 'value']:
continue
parts.append("{}={}".format(k, v))
script = 'document.cookie = "{}";'.format('; '.join(parts))
driver.execute_script(script) |
Meta -
OS: Ubuntu 17.04
Selenium Version: 3.5.1
Browser: FireFox
Browser Version: 55.0.3
Expected Behavior -
Actual Behavior -
Steps to reproduce -
The text was updated successfully, but these errors were encountered: