reset browser when blocked by google
This commit is contained in:
@@ -261,7 +261,6 @@ class CommandorPage {
|
||||
log(e);
|
||||
this.isTerminated = true;
|
||||
}
|
||||
// await page.click(PREFER_STORE);
|
||||
}
|
||||
|
||||
|
||||
@@ -359,6 +358,8 @@ class CommandorPage {
|
||||
}
|
||||
}
|
||||
log("发现datadome");
|
||||
} else if (currentPage.url().includes("sorry")) {
|
||||
await this.resetBrowser()
|
||||
} else {
|
||||
if (currentPage.url() === RDV_URL) {
|
||||
await this.fillFields(this.page);
|
||||
|
||||
Reference in New Issue
Block a user