Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CDP Mode: Patch 46
--> This resolves
asyncio
errors on Python 3.11 (and older) #3715--> This resolves Activating CDP Mode more than once for the same driver can lead to
asyncio
errors #3716To avoid memory leaks in CDP Mode, upgrade to Python 3.12 (or newer).
There's an issue with
asyncio
in earlier versions, which makes the memory leak unavoidable.Due to that, there's not much that can be done from the SeleniumBase side to avoid that specific memory leak if you're using an older version of Python. (Only CDP Mode is affected, and only for Python 3.11 and older versions.) That's because CDP Mode using
asyncio
in the backend, even if you don't call anyasync
functions directly.