diff --git a/src/excel/ExcelUtil.js b/src/excel/ExcelUtil.js index 7a26212..188e07b 100644 --- a/src/excel/ExcelUtil.js +++ b/src/excel/ExcelUtil.js @@ -4,7 +4,7 @@ const ContactPojo = require("../models/ContactPojo"); class ExcelUtil { readContacts() { - let workSheetsFromFile = xlsx.parse('/Users/lpan/Desktop/contact_all.xlsx'); + let workSheetsFromFile = xlsx.parse('C:/Users/lei/Desktop/contact_all.xlsx'); console.log(workSheetsFromFile); // return a list of contactPojo let contactList = []; diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index b5a1612..6163b82 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -75,12 +75,10 @@ class CommandorPage { }) try { await this.page.goto(RDV_URL, {timeout: 90 * 1000}); - }catch (e) { + } catch (e) { console.log(e) this.isTerminated = true } - //wait 10 mins - // Close the device. let cancel const intervalTask = setInterval(() => { @@ -240,7 +238,7 @@ class CommandorPage { } } - async checkAudioBtn() { + async checkAudioBtn() { // let iframe = await this.page.locator("iframe").contentFrame; // let audioBtn = iframe.locator("#captcha__audio__button"); // if (audioBtn) {