RuntimeWarning: coroutine 'Event.wait' was never awaited with Edge in Stealthy Playwright Mode
Happened when running the following from https://github.com/seleniumbase/SeleniumBase/tree/master/examples/cdp_mode/playwright
> python raw_planetmc_sync.py --edge
...
~/github/SeleniumBase/seleniumbase/undetected/cdp_driver/connection.py:321: RuntimeWarning: coroutine 'Event.wait' was never awaited
await self.listener.idle.wait()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Here's the script that was run with --edge (for using the Edge browser):
from playwright.sync_api import sync_playwright
from seleniumbase import sb_cdp
sb = sb_cdp.Chrome()
endpoint_url = sb.get_endpoint_url()
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp(endpoint_url)
page = browser.contexts[0].pages[0]
page.goto("https://www.planetminecraft.com/account/sign_in/")
page.wait_for_timeout(2000)
sb.solve_captcha()
input_disabled = page.locator("input[disabled]")
input_disabled.wait_for(state="hidden", timeout=5000)
page.wait_for_timeout(2000)
RuntimeWarning: coroutine 'Event.wait' was never awaitedwith Edge in Stealthy Playwright ModeHappened when running the following from https://github.com/seleniumbase/SeleniumBase/tree/master/examples/cdp_mode/playwright
Here's the script that was run with
--edge(for using the Edge browser):