print to console and files

This commit is contained in:
2022-09-19 13:39:05 +02:00
parent cc688ddbfd
commit a767923dcb
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -35,11 +35,11 @@ const CAPTCHA_ERROR_MESSAGE_FR = "La vérification du captcha a échoué"
REGEX_RDV_URL = "https:\/\/rendezvousparis\.hermes\.com\/client\/register\/[A-Z0-9]+"
const DEFAULT_STORE = 'faubourg';
function delay(delayInms) {
function delay(delayInMs) {
return new Promise(resolve => {
setTimeout(() => {
resolve(2);
}, delayInms);
}, delayInMs);
});
}
@@ -324,7 +324,7 @@ class CommandorPage {
let audioBtn = await this.page.frameLocator("iframe").locator("#captcha__audio__button");
if (audioBtn) {
log("audioBtn found")
audioBtn.click()
// audioBtn.click()
} else {
log("audioBtn not found")
}