handle Request Time-out error

This commit is contained in:
2023-04-22 11:11:38 +02:00
parent 286daf569f
commit dc5aeeab07
+4
View File
@@ -396,6 +396,10 @@ class CommandorPage {
logWithDevice("ERR_TIMED_OUT, will reload page", this.device);
await delay(2000)
await this.page.reload()
} else if (content.includes("408 Request Time-out")) {
logWithDevice("Request Time-out, will reload page", this.device);
await delay(2000)
await this.page.reload()
} else {
if (currentPage.url() === RDV_URL) {
await this.fillFields(this.page);