From 653ab44077a0feecd59755af297550be57c1eb34 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Nov 2020 14:17:20 +0300 Subject: feat: click on instead of
  • --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index d240be0..6fa3b7b 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ puppeteer.launch({ headless: true }) // Find the course await page.goto(COURSE_URL); await Promise.all([ - clickElementBySelector(page, 'li.bigbluebuttonbn'), + clickElementBySelector(page, 'li.bigbluebuttonbn a'), page.waitForNavigation() // Wait until the next page loads ]); @@ -42,7 +42,7 @@ puppeteer.launch({ headless: true }) // Prepare onJoin callback const fillAttendance = async () => { await page.goBack(); - await clickElementBySelector(page, 'li.attendance'); + await clickElementBySelector(page, 'li.attendance a'); // TODO: actually fill the attendance console.log('Attendance filled'); }; -- cgit v1.2.3