Skip to content

sb.cdp.get_all_cookies() is hitting errors #3297

Closed
@mdmintz

Description

@mdmintz
Member

sb.cdp.get_all_cookies() is hitting errors.

*** AttributeError: "Tab" has no attribute "closed".
Traceback (most recent call last):
  File ".../seleniumbase/undetected/cdp_driver/tab.py", line 1308, in __getattr__
    return getattr(self._target, item)
AttributeError: 'TargetInfo' object has no attribute 'closed'

There is a workaround for now:

sb.cdp.get_cookie_string(), which gets the string result from page.evaluate("document.cookie").

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModebugUh oh... Something needs to be fixedworkaround existsYou can reach your destination if you do this...

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @mdmintz

    Issue actions

      `sb.cdp.get_all_cookies()` is hitting errors · Issue #3297 · seleniumbase/SeleniumBase