summaryrefslogtreecommitdiff
path: root/src/handlers/launchUserSession.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers/launchUserSession.js')
-rw-r--r--src/handlers/launchUserSession.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/handlers/launchUserSession.js b/src/handlers/launchUserSession.js
index 58dde62..44f2193 100644
--- a/src/handlers/launchUserSession.js
+++ b/src/handlers/launchUserSession.js
@@ -3,8 +3,10 @@ const { clickElementBySelector } = require('./utils.js');
const { EDUFPMI_URL } = process.env;
-const launchUserSession = (user, headless = true) => puppeteer.launch({ headless })
- .then(async browser => {
+const launchUserSession = (user, headless = true) => puppeteer.launch({
+ headless,
+ args: ['--no-sandbox']
+}).then(async browser => {
const { username, password } = user;
const page = await browser.newPage();