mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
fix: 修复拉起appium setting后 不能立即获取pid
This commit is contained in:
@@ -768,6 +768,7 @@ func (ad *adbDriver) SetIme(imeRegx string) error {
|
||||
}
|
||||
|
||||
if strings.ToLower(brand) == "oppo" {
|
||||
time.Sleep(1 * time.Second)
|
||||
pid, _ := ad.adbClient.RunShellCommand("pidof", packageName)
|
||||
if strings.TrimSpace(pid) == "" {
|
||||
focusedPackage, err := ad.GetFocusedPackage()
|
||||
|
||||
Reference in New Issue
Block a user