requestium icon indicating copy to clipboard operation
requestium copied to clipboard

avoid GET when using transfer_session_cookies_to_driver()

Open andy135andy opened this issue 3 years ago • 0 comments

"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!

andy135andy avatar Aug 27 '22 04:08 andy135andy