mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +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" {
|
if strings.ToLower(brand) == "oppo" {
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
pid, _ := ad.adbClient.RunShellCommand("pidof", packageName)
|
pid, _ := ad.adbClient.RunShellCommand("pidof", packageName)
|
||||||
if strings.TrimSpace(pid) == "" {
|
if strings.TrimSpace(pid) == "" {
|
||||||
focusedPackage, err := ad.GetFocusedPackage()
|
focusedPackage, err := ad.GetFocusedPackage()
|
||||||
|
|||||||
Reference in New Issue
Block a user