Skip to content

support @CDP-patches #11

Open
Open
@MiseaSybsa

Description

@MiseaSybsa

Should it even work with CDP_patches? I get an error when i try to use it

def main():
    with sync_playwright() as p:
        browser = p.chromium.launch()

        page = browser.new_page()
        sync_input = SyncInput(browser=browser, emulate_behaviour=True)

File "...\.venv\Lib\site-packages\cdp_patches\input\browsers.py", line 154, in get_sync_browser_pid
if isinstance(browser, SeleniumChrome) or isinstance(browser, DriverlessSyncChrome):
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions