add NO_INTERNET option
This commit is contained in:
@@ -501,6 +501,7 @@ class CommandorPage {
|
||||
// remove debug flag
|
||||
// const validElement = await page.$('.btn');
|
||||
console.log("will click on valid button");
|
||||
console.log("isTerminated is " + this.isTerminated);
|
||||
if (!this.isTerminated) {
|
||||
await this.page.evaluate(() => {
|
||||
document.getElementsByClassName("btn")[0].click();
|
||||
@@ -758,7 +759,7 @@ class CommandorPage {
|
||||
await delay(2000);
|
||||
let checkResult = await this.ocrChecker.get_result();
|
||||
console.log(checkResult);
|
||||
while (checkResult === OCRResult.RECHECK) {
|
||||
while (checkResult === OCRResult.RECHECK || checkResult === OCRResult.NO_INTERNET) {
|
||||
logWithDevice("will recheck OCR", this.device)
|
||||
await delay(4000)
|
||||
logWithDevice("will recheck OCR", this.device)
|
||||
|
||||
Reference in New Issue
Block a user