try to clear browser every time

This commit is contained in:
2022-11-29 10:47:29 +01:00
parent 3d8500cf08
commit 747d6a56d6
+3
View File
@@ -98,6 +98,9 @@ class CommandorPage {
let cancel
const intervalTask = setInterval(() => {
if (this.isTerminated) {
this.device.shell("pm clear com.android.chrome")
this.device.shell("am set-debug-app --persistent com.android.chrome")
this.device.shell("pm am start -n com.android.chrome/com.google.android.apps.chrome.Main")
log("request terminated, will close device")
context.close()
// this.page.close()