how to wait browser to close like playwright await browser.close();

how to wait browser to close like playwright await browser.close();
1 Reply
Pepa J
Pepa J3y ago
Hello @mtto , may you provide more details what are you trying to do? As default the browser closes itself when there are no other requests in RequestQueue. I am affraid, that calling browser.close() may in some situations cause an error (when there are hanging promises that works with with page context or browser itself).

Did you find this page helpful?