change: remove options for AppLaunch/AppTerminate

This commit is contained in:
lilong.129
2025-05-12 17:31:08 +08:00
parent 00a6ca1f61
commit 0722e92e87
4 changed files with 7 additions and 11 deletions

View File

@@ -270,7 +270,6 @@ func (ad *ADBDriver) AppLaunch(packageName string) (err error) {
log.Info().Str("packageName", packageName).Msg("ADBDriver.AppLaunch")
// 不指定 Activity 名称启动(启动主 Activity
// adb shell monkey -p <packagename> -c android.intent.category.LAUNCHER 1
sOutput, err := ad.runShellCommand(
"monkey", "-p", packageName, "-c", "android.intent.category.LAUNCHER", "1",
)

View File

@@ -494,7 +494,6 @@ func (wd *WDADriver) AlertSendKeys(text string) (err error) {
func (wd *WDADriver) AppLaunch(bundleId string) (err error) {
log.Info().Str("bundleId", bundleId).Msg("WDADriver.AppLaunch")
// [[FBRoute POST:@"/wda/apps/launch"] respondWithTarget:self action:@selector(handleSessionAppLaunch:)]
data := make(map[string]interface{})
data["bundleId"] = bundleId
data["environment"] = map[string]interface{}{