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

avoid GET when using transfer_session_cookies_to_driver() #61

Closed
andy135andy opened this issue Aug 27, 2022 · 2 comments
Closed

avoid GET when using transfer_session_cookies_to_driver() #61

andy135andy opened this issue Aug 27, 2022 · 2 comments

Comments

@andy135andy
Copy link

"It also allows you to override the domain before adding it, and avoid making this GET"
How do I avoid making GET to the domain when I transfer session cookies to the driver? or is it possible?

The problem I'm facing is that after I obtained access of domain A through a requests session, I want to pass the session cookies from requests to webdriver, but it raise error "selenium.common.exceptions.InvalidCookieDomainException: Message: invalid cookie domain: Cookie 'domain' mismatch" becaue I couldn't access domain A by driver before passing the session cookies to the driver?

Thanks!

@lordjabez
Copy link
Collaborator

This sounds similar to #56 which I really do need to dig into further. Maybe the holidays will afford some time...

@lordjabez
Copy link
Collaborator

@andy135andy Can you give a more complete example of what you're trying to do that causes this error? Also update to the latest version, because I made a few small improvements to the cookie loading function.

@lordjabez lordjabez closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2023
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