首页 > TAG信息列表 > MultiAction

多点触控模拟note

https://appium.io/docs/cn/writing-running-appium/touch-actions/   1、java:https://blog.csdn.net/weixin_43291944/article/details/97003877   2、python:https://juejin.cn/post/6920762623394840583 from appium.webdriver.common.multi_action import MultiAction fro

第一种

负担更多人工 # 定义放大 def enlarge(): x = windowSize()[0] y = windowSize()[1] # print(x,y) zoomAction = MultiAction(dr) a1 = TouchAction(dr).press(x=x*0.4,y=y*0.4).wait(100).move_to(x=x*0.3,y=y*0.3).release() a2 = TouchAction(dr).pre

第一种换了

各过各的很 1 # 定义放大 2 def enlarge(): 3 x = windowSize()[0] 4 y = windowSize()[1] 5 # print(x,y) 6 zoomAction = MultiAction(dr) 7 a1 = TouchAction(dr).press(x=x*0.4,y=y*0.4).wait(100).move_to(x=x*0.3,y=y*0.3).release() 8 a2

第二篇随笔

怎么显示行号 `# 定义放大 def enlarge(): x = windowSize()[0] y = windowSize()[1] # print(x,y) zoomAction = MultiAction(dr) a1 = TouchAction(dr).press(x=x0.4,y=y0.4).wait(100).move_to(x=x0.3,y=y0.3).release() a2 = TouchAction(dr).press(x=x0.6,y=y0.6).wait(100).