specify log file path
This commit is contained in:
@@ -251,7 +251,7 @@ class CommandorPage {
|
||||
document.getElementsByClassName("btn")[0].click();
|
||||
})
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
log(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -297,10 +297,10 @@ class CommandorPage {
|
||||
await this.checkAudioBtn();
|
||||
for (let i = 0; i < 15; i++) {
|
||||
await delay(1000)
|
||||
console.log("will call beep")
|
||||
log("will call beep")
|
||||
shell.beep()
|
||||
}
|
||||
console.log("发现datadome");
|
||||
log("发现datadome");
|
||||
} else {
|
||||
if (currentPage.url() === RDV_URL) {
|
||||
await this.fillFields(this.page);
|
||||
@@ -308,7 +308,7 @@ class CommandorPage {
|
||||
await this.getErrors()
|
||||
} else {
|
||||
if (content.includes(MESSAGE_URL_VALIDATION_FR) || content.includes(MESSAGE_URL_VALIDATION_EN)) {
|
||||
console.log("successful");
|
||||
log("successful");
|
||||
await this.push_message_to_queue(PublishType.SUCCESS);
|
||||
} else {
|
||||
// try to get errors
|
||||
@@ -317,7 +317,7 @@ class CommandorPage {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
log(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user