rebrowser / rebrowser-patches

Collection of patches for puppeteer and playwright to avoid automation detection and leaks. Helps to avoid Cloudflare and DataDome CAPTCHA pages. Easy to patch/unpatch, can be enabled/disabled on demand.
https://rebrowser.net
285 stars 25 forks source link

Unable to interact with Frames in Python Playwright #51

Open OnaZeroN opened 1 day ago

OnaZeroN commented 1 day ago

After receiving a frame, rebrowser_playwright cannot interact with objects on it:

Code example:

While True:
    frame = page.frame(url=“some.url”)
    if frame:
        break
    await asyncio.sleep(1)
await frame.content()

Output: rebrowser_playwright._impl._errors.Error: Frame.content: Unable to retrieve content because the page is navigating and changing the content.

There is no such problem on regular Playwright.

Please let me know if you need more information to help with this problem!