summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.js4
1 files 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');
};