import time
from appium.webdriver.common.mobileby import MobileBy
from appium import webdriver
desired_caps = {"platformName": "Android", # 操作系统
"deviceName": "M2012K10C", # 设备 ID
"platformVersion": "11", # 设备版本号
"appPackage": "com.tencent.mm", # app 包名
"appActivity": ".ui.LauncherUI", # app 启动时主 Activity
# "appActivity": ".plugin.appbrand.ui.AppBrandUI1",
'noReset': True, # 是否保留 session 信息,可以避免重新登录
'unicodeKeyboard': True, # 使用 unicodeKeyboard 的编码方式来发送字符串
'resetKeyboard': True , # 将键盘给隐藏起来
# "chromedriverExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
}
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
# driver.implicitly_wait(10)
time.
appium+python打开微信发现
于 2023-04-25 13:54:24 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)