add timeout for pages()

This commit is contained in:
2023-11-30 16:19:48 +01:00
parent 939b98e3a3
commit 8ec0443a01
3 changed files with 58 additions and 50 deletions
+1
View File
@@ -194,6 +194,7 @@ class OCRChecker {
async take_screen_shot() {
let name = this.get_file_name()
console.log("will take screenshot for " + this.device.model() + ":" + this.device.serial())
console.log("name is " + name)
let stdout1 = await exec("adb -s " + this.device.serial() + " exec-out screencap -p > " + name)
await delay(5000);
console.log(`stdout: ${stdout1}`);