diff --git a/helpers/browserApi.js b/helpers/browserApi.js index acc3c14..a5b7ccc 100644 --- a/helpers/browserApi.js +++ b/helpers/browserApi.js @@ -86,7 +86,7 @@ class PuppeteerApi { } async checkIfPageIsOpen() { - let isClosed = false + let isClosed = true if (this.page) { isClosed = await this.page.isClosed() }