1 Star 0 Fork 0

Solitary pursuit of defeat/code_repository

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
demo3001.py 662 Bytes
一键复制 编辑 原始数据 按行查看 历史
Solitary pursuit of defeat 提交于 2023-05-24 11:54 . 555
# This sample code uses the Appium python client
# pip install Appium-Python-Client
# Then you can paste this into a file and simply run with Python
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from time import sleep
caps = {}
caps["platformName"] = "Android"
caps["platformVersion"] = "8.0"
caps["deviceName"] = "192.168.236.101:5555"
caps["appPackage"] = "com.android.settings"
caps["appActivity"] = ".Settings"
driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)
sleep(2)
TouchAction(driver).long_press(x=333, y=1093).move_to(x=338, y=317).release().perform()
sleep(2)
driver.quit()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yuanliangliang_repotory/cede_repotory.git
git@gitee.com:yuanliangliang_repotory/cede_repotory.git
yuanliangliang_repotory
cede_repotory
code_repository
master

搜索帮助