临时提交
This commit is contained in:
@@ -18,19 +18,19 @@ class ScriptManager():
|
||||
session = client.session()
|
||||
session.appium_settings({"snapshotMaxDepth": 0})
|
||||
|
||||
deviceWidth = client.window_size().width
|
||||
deviceHeight = client.window_size().height
|
||||
# deviceWidth = client.window_size().width
|
||||
# deviceHeight = client.window_size().height
|
||||
|
||||
img = client.screenshot()
|
||||
tempPath = "resources/bgv.png"
|
||||
tempPath = "resources/bgv.jpg"
|
||||
img.save(tempPath)
|
||||
|
||||
bgvPath = AiTools.imagePath("bgv")
|
||||
likePath = AiTools.imagePath("like")
|
||||
smallImage = AiTools.pathWithName("like")
|
||||
bigImage = AiTools.pathWithName("bgv")
|
||||
|
||||
x, y = AiTools.find_image_in_image(bgvPath, likePath)
|
||||
x, y = AiTools.find_image_in_image(bigImage, smallImage)
|
||||
print(x, y)
|
||||
# client.tap(end[0] / 3 - 2, end[1] / 3 - 2)
|
||||
# client.tap(x, y)
|
||||
|
||||
|
||||
# xml = session.source()
|
||||
|
||||
Reference in New Issue
Block a user