page.close() and browser.close() should be in try-catch-finally block #90
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Everytime something goes wrong capturing a screenshot (i.e. no response, timeouts, ...) the function exits without closing page and browser, so that chrome instances keep growing until server dies.
Putting page.close() and browser.close() in a "finally" block should avoid resources leaking
The text was updated successfully, but these errors were encountered: