Skip to content

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

Closed
@mdmintz

Description

@mdmintz

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 ModebugUh 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