Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Activating CDP Mode more than once for the same driver can lead to asyncio errors #3716

Copy link
Copy link
Closed
@mdmintz

Description

@mdmintz
Issue body actions

Activating CDP Mode more than once for the same driver can lead to asyncio errors

Here's an example that reproduces the issue:

import seleniumbase, platform, string
from seleniumbase import SB

letters = string.ascii_lowercase[0:2]
print(platform.python_version())
print(seleniumbase.__version__)

with SB(uc=True) as sb:
    for _id, letter in enumerate(letters):
        print(_id + 1, letter)
        sb.activate_cdp_mode()
        sb.connect()
        sb.open(f"data:text/html,<h1>Page {letter}</h1>")
        sb.assert_text(f"Page {letter}")

Metadata

Metadata

Assignees

Labels

UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeUndetected Chromedriver Mode / CDP ModebugUh oh... Something needs to be fixedUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.