临时提交
This commit is contained in:
@@ -120,15 +120,14 @@ def toHome():
|
||||
def tapAction():
|
||||
body = request.get_json()
|
||||
udid = body.get("udid")
|
||||
x = body.get("x")
|
||||
y = body.get("y")
|
||||
client = wda.USBClient(udid)
|
||||
session = client.session()
|
||||
session.appium_settings({"snapshotMaxDepth": 0})
|
||||
print(client.window_size())
|
||||
width = client.window_size()[0]
|
||||
height = client.window_size()[1]
|
||||
session.tap(x * width, y * height)
|
||||
|
||||
x = body.get("x")
|
||||
y = body.get("y")
|
||||
|
||||
session.tap(x, y)
|
||||
return ResultData(data="").toJson()
|
||||
|
||||
# 拖拽事件
|
||||
|
||||
Reference in New Issue
Block a user