# coding=utf-8
from appium import webdriver
import time
# 模拟滑屏
from appium.webdriver.common.touch_action import TouchAction
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '8.0'
desired_caps['deviceName'] = 'OnePlus 3T'
desired_caps['appPackage'] = 'com.tencent.tim'
desired_caps['appActivity'] = 'com.tencent.mobileqq.activity.SplashActivity'
#不重置apk
desired_caps['noReset'] = True
# 启动
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
print('已成功连接设备')
time.sleep(2)
driver.tap([(222,702), (1080,854)], 500)
appium操作tim
最新推荐文章于 2021-10-28 21:30:55 发布