adapte the new block page
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user