This repository has been archived by the owner on May 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 369
pyppeteer throws error if it has to work in cycle: Protocol Error (Runtime.evaluate): Session closed #267
Comments
Same for async def baz_main():
browser = await pyppeteer.launch(headless=True)
pages = await browser.pages()
page = pages[0]
await page.goto('http://m.reactor.cc')
i = 5
while i > 0:
i -= 1
print(i)
await baz_do(page)
await browser.close() Output:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
subj
python >=3.7
websockets==6.0 and websockets==8.1
Code example:
The text was updated successfully, but these errors were encountered: