more possibility

This commit is contained in:
Lei PAN
2023-07-19 19:10:45 +02:00
parent 0f0021e8c0
commit 5e69d68dde
2 changed files with 16 additions and 6 deletions
+8 -2
View File
@@ -838,13 +838,13 @@ class CommandorPage {
pages.forEach((currentPage) => {
if (currentPage.url() === RDV_URL) {
this.page = currentPage;
} else {
currentPage.close()
}
})
logWithDevice("this.page.bringToFront();", this.device)
await this.page.bringToFront();
// this.page = pages;
// this.page.await
await this.fillFields(this.page)
await delay(2 * 1000);
} catch (e) {
@@ -863,6 +863,8 @@ class CommandorPage {
pages.forEach((currentPage) => {
if (currentPage.url() === RDV_URL) {
this.page = currentPage;
} else {
currentPage.close()
}
})
logWithDevice("this.page.bringToFront();", this.device)
@@ -894,7 +896,11 @@ class CommandorPage {
break;
case
OCRResult.RECAPTCHA_ERROR:
// if (!this.isFillingFields)
this.isTerminated = true;
// else {
// await this.checkResultWithOcr();
// }
// await this.connect_to_browser(OCRResult.RECAPTCHA_ERROR)
break;
case