You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the reason why my routes didn't work in JS errors.
Seems utils and opts are no longer available in execution context.
Execution of all patch-scripts at once in same context fixes the issue. Like joining all scripts into single body and execution it inside single add_init_script()
def stealth_sync(page: SyncPage, config: StealthConfig = None):
"""teaches synchronous playwright Page to be stealthy like a ninja!"""
scripts = []
for script in (config or StealthConfig()).enabled_scripts:
scripts.append(script)
scripts_payload = "\n".join(scripts)
page.add_init_script(scripts_payload)
Everything works fine on
playwright==1.27.1
But when updating playwright to
1.31.1
-- all "interception/modifying requests" methods stop working.like
https://playwright.dev/python/docs/network#modify-requests
The text was updated successfully, but these errors were encountered: