0

I'm trying to re-attach to existing session in headless mode, using Python 3 and chrome driver (chrome 99), as well as using existing user profile.

Although it worked a couple of months ago, following this tip: I can reattach to session with selenium but cannot stop it launching another browser? , it doesn't work in headless mode anymore.

Why is that? Did chrome driver update itself with some sort of blocking feature (of headless mode with session), or anything else?

Thanks!

EDIT: this is the response I get:

  File "C:\Python37\lib\site-packages\urllib3\connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw

File "C:\Python37\lib\site-packages\urllib3\util\connection.py", line 95, in create_connection raise err File "C:\Python37\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection sock.connect(sa) ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

But no Chrome is running.

0 Answers0