调整项目结构
This commit is contained in:
@@ -96,7 +96,7 @@ def deviceAppList():
|
||||
non_system_apps = [app for app in apps if not app["bundleId"].startswith("com.apple")]
|
||||
return ResultData(data=non_system_apps).toJson()
|
||||
|
||||
# 打开置顶app
|
||||
# 打开指定app
|
||||
@app.route('/launchApp', methods=['POST'])
|
||||
def launchApp():
|
||||
body = request.get_json()
|
||||
@@ -125,7 +125,10 @@ def tapAction():
|
||||
client = wda.USBClient(udid)
|
||||
session = client.session()
|
||||
session.appium_settings({"snapshotMaxDepth": 0})
|
||||
session.tap(x, y)
|
||||
print(client.window_size())
|
||||
width = client.window_size()[0]
|
||||
height = client.window_size()[1]
|
||||
session.tap(x * width, y * height)
|
||||
return ResultData(data="").toJson()
|
||||
|
||||
# 拖拽事件
|
||||
|
||||
Reference in New Issue
Block a user