adapte the new block page

This commit is contained in:
Lei PAN
2023-10-28 17:15:25 +02:00
parent 8160ca02f3
commit c302c31af5
+6 -2
View File
@@ -37,8 +37,12 @@ async function openUrlWithAdb(url, device) {
// do not continue if device is blocked // do not continue if device is blocked
console.log("load url on device " + device.model() + " url=" + url) console.log("load url on device " + device.model() + " url=" + url)
let cmd = "adb -s " + device.serial() + " shell am start -a android.intent.action.VIEW -d " + url let cmd = "adb -s " + device.serial() + " shell am start -a android.intent.action.VIEW -d " + url
let output = await cmdExecute(cmd); try {
console.log(`stdout: ${output}`); let output = await cmdExecute(cmd);
console.log(`stdout: ${output}`);
} catch (e) {
console.log(e)
}
} }
async function findText(imgPath) { async function findText(imgPath) {