基础信息

from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
import time
desire_cap={
  "appActivity": ".launch.LaunchSplashEduActivity",
  "appPackage": "com.tencent.wework",
  "platformName": "android",
  "deviceName": "emulator-5554",
  "noReset": True,#不对应用reset
  "dontStopAppOnReset": True 
  "unicodeKeyBoard": True #切换输入
  "resetKeyBoard": True
}
driver = webdriver.Remote("http://localhost:4723/wd/hub",desire_cap)
driver.implicitly_wait(20)

adb devices

adb shell pm list packages

adb logcat | grep ActivityManager 或者 adb logcat | grep Displayed

图片1

5vahX4.png

图片2

5vabh6.png

app信息

5v0G79.png

Capability设置

5v0r0H.png