log with device info
This commit is contained in:
@@ -548,8 +548,8 @@ class CommandorPage {
|
|||||||
try {
|
try {
|
||||||
// remove debug flag
|
// remove debug flag
|
||||||
// const validElement = await page.$('.btn');
|
// const validElement = await page.$('.btn');
|
||||||
console.log("will click on valid button");
|
logWithDevice("will click on valid button", this.device);
|
||||||
console.log("isTerminated is " + this.isTerminated);
|
logWithDevice("isTerminated is " + this.isTerminated, this.device);
|
||||||
if (!this.isTerminated) {
|
if (!this.isTerminated) {
|
||||||
let raw = await this.getRawAppointmentInfo(this.page)
|
let raw = await this.getRawAppointmentInfo(this.page)
|
||||||
if (raw.email !== undefined) {
|
if (raw.email !== undefined) {
|
||||||
@@ -598,6 +598,7 @@ class CommandorPage {
|
|||||||
//check whether there is captcha
|
//check whether there is captcha
|
||||||
let pageContent = await page.content()
|
let pageContent = await page.content()
|
||||||
let hasCaptcha = pageContent.includes("g-recaptcha-response")
|
let hasCaptcha = pageContent.includes("g-recaptcha-response")
|
||||||
|
logWithDevice("hasCaptcha = " + hasCaptcha, this.device)
|
||||||
if (hasCaptcha) {
|
if (hasCaptcha) {
|
||||||
// await this.clickCheckbox()
|
// await this.clickCheckbox()
|
||||||
await delay(1000)
|
await delay(1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user