specify log file path

This commit is contained in:
2022-09-18 22:48:05 +02:00
parent 26167dee8b
commit 4e657f88a2
2 changed files with 8 additions and 6 deletions
+5 -5
View File
@@ -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)
}
}