Did anyone use Selenium with Python?

I m trying to add cookies so that I can access a domain.
Without the cookie, the page will be redirected to another domain. However, I can only add cookies when I can remain on the page, because selenium "Cookies can only be set for the current domain".

is there a way to set the cookie without being in the same domain or is there a way to prevent the redirection?

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.