handle proxy error
This commit is contained in:
@@ -384,6 +384,14 @@ class CommandorPage {
|
||||
await this.page.reload()
|
||||
} else if (currentPage.url().includes("sorry")) {
|
||||
await this.resetBrowser()
|
||||
} else if (content.includes("PROXY_CONNECTION_FAILED")) {
|
||||
logWithDevice("PROXY_CONNECTION_FAILED, will reload page", this.device);
|
||||
await delay(2000)
|
||||
await this.page.reload()
|
||||
} else if (content.includes("ERR_NETWORK_CHANGED")) {
|
||||
logWithDevice("ERR_NETWORK_CHANGED, will reload page", this.device);
|
||||
await delay(2000)
|
||||
await this.page.reload()
|
||||
} else {
|
||||
if (currentPage.url() === RDV_URL) {
|
||||
await this.fillFields(this.page);
|
||||
|
||||
Reference in New Issue
Block a user