use brave as browser
This commit is contained in:
@@ -68,8 +68,8 @@ class CommandorPage {
|
|||||||
this.choosedStore = selectedStore;
|
this.choosedStore = selectedStore;
|
||||||
this.port = port;
|
this.port = port;
|
||||||
this.ocrChecker = new OCRChecker(this.device, this.contact);
|
this.ocrChecker = new OCRChecker(this.device, this.contact);
|
||||||
// this.browserPackageName = "com.brave.browser";
|
this.browserPackageName = "com.brave.browser";
|
||||||
this.browserPackageName = "com.android.chrome";
|
// this.browserPackageName = "com.android.chrome";
|
||||||
this.isFillingFields = false;
|
this.isFillingFields = false;
|
||||||
this.isTerminated = false;
|
this.isTerminated = false;
|
||||||
this.cguChecked = false;
|
this.cguChecked = false;
|
||||||
@@ -135,7 +135,7 @@ class CommandorPage {
|
|||||||
async loadPage() {
|
async loadPage() {
|
||||||
logWithDevice(this.device.serial() + ":loadPage() called, with port:" + this.port, this.device);
|
logWithDevice(this.device.serial() + ":loadPage() called, with port:" + this.port, this.device);
|
||||||
try {
|
try {
|
||||||
await this.device.shell("am start -n com.android.chrome/com.google.android.apps.chrome.Main")
|
await this.device.shell("am start -n " + this.browserPackageName + "/com.google.android.apps.chrome.Main")
|
||||||
await delay(5 * 1000);
|
await delay(5 * 1000);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
@@ -744,12 +744,6 @@ class CommandorPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async removeDebugFlag() {
|
|
||||||
await delay(1000)
|
|
||||||
await this.device.shell("am clear-debug-app --persistent com.android.chrome")
|
|
||||||
await delay(1000)
|
|
||||||
}
|
|
||||||
|
|
||||||
async resetBrowser() {
|
async resetBrowser() {
|
||||||
logWithDevice("resetBrowser", this.device);
|
logWithDevice("resetBrowser", this.device);
|
||||||
this.isFillingFields = false;
|
this.isFillingFields = false;
|
||||||
@@ -762,8 +756,6 @@ class CommandorPage {
|
|||||||
// this.disconnectBrowser();
|
// this.disconnectBrowser();
|
||||||
await this.device.shell("pm clear " + this.browserPackageName)
|
await this.device.shell("pm clear " + this.browserPackageName)
|
||||||
await delay(1000)
|
await delay(1000)
|
||||||
// await this.device.shell("am start -n " + this.browserPackageName + "/com.google.android.apps.chrome.Main")
|
|
||||||
// await delay(2000);
|
|
||||||
this.isTerminated = true;
|
this.isTerminated = true;
|
||||||
// await this.checkResultWithOcr();
|
// await this.checkResultWithOcr();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user