|
from com.android.monkeyrunner import MonkeyRunner as mr
from com.android.monkeyrunner import MonkeyDevice as md
from com.android.monkeyrunner import MonkeyImage as mi
device = mr.waitForConnection()
width0=1920
height0=1080
width=device.getProperty('display.width')
height=device.getProperty('display.height')
device.touch(46*width/width0,1000*height/height0,'DOWN_AND_UP')
这句话导致报错,求指教
device.touch((46*width/width0),(1000*height/height0),'DOWN_AND_UP')
TypeError: unsupported operand type(s) for /: 'unicode' and 'int'希望高手给予帮助,这个地方该怎么修改
|
|