more possibility
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user