diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-14 16:35:14 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-14 16:37:23 +0300 |
commit | 4f0561acef93970f69b0ddda1cea132532355e7d (patch) | |
tree | 4abff57990993be797538462f92935015ef46ae0 | |
parent | 36465387454cdb797f886f732d40a70faa92cbad (diff) | |
download | bsu-fantom-4f0561acef93970f69b0ddda1cea132532355e7d.tar.gz |
refactor: create handlers folder
-rw-r--r-- | src/handlers/attendConference.js (renamed from src/attendConference.js) | 0 | ||||
-rw-r--r-- | src/handlers/index.js (renamed from src/index.js) | 3 | ||||
-rw-r--r-- | src/handlers/utils.js (renamed from src/utils.js) | 0 |
3 files changed, 1 insertions, 2 deletions
diff --git a/src/attendConference.js b/src/handlers/attendConference.js index 54d6479..54d6479 100644 --- a/src/attendConference.js +++ b/src/handlers/attendConference.js diff --git a/src/index.js b/src/handlers/index.js index 6fa3b7b..c50ef23 100644 --- a/src/index.js +++ b/src/handlers/index.js @@ -1,4 +1,3 @@ -require('dotenv').config(); const puppeteer = require('puppeteer'); const attendConference = require('./attendConference.js'); const { clickElementBySelector } = require('./utils.js'); @@ -13,7 +12,7 @@ const { puppeteer.launch({ headless: true }) .then(async browser => { const page = await browser.newPage(); - + // Login await page.goto(EDUFPMI_URL, { waitUntil: 'domcontentloaded' }); await page.type('input#username', EDUFPMI_USERNAME); diff --git a/src/utils.js b/src/handlers/utils.js index cf9fe38..cf9fe38 100644 --- a/src/utils.js +++ b/src/handlers/utils.js |