macaca icon indicating copy to clipboard operation
macaca copied to clipboard

ios列表滑动问题

Open liurj opened this issue 6 years ago • 1 comments

我用uirecorder录制了一个脚本,然后修改了滑动的方法为 it('drag: 192, 711, 216, 236, 1.11', async function(){ //await driver.sendActions('drag', {fromX: 192, fromY:711, toX:216, toY:236, duration: 1.11}); await driver.swipe(192, 500, 216, 236, 1.11); }); 运行提示 drag: 192, 711, 216, 236, 1.11: TypeError: driver.swipe is not a function at Context. (test1.spec.js:53:22)

问题 1、请问macaca不支持swipe吗,但是看问题解答里说2016年就支持了啊?这个该怎么使用 2、如果不支持,我想将列表(ios)滑动到某一项该怎么实现,谢谢

liurj avatar Mar 27 '19 07:03 liurj

This is the translated issue:


Ios list sliding problem

I recorded a script with uirecorder and then modified the sliding method to it('drag: 192, 711, 216, 236, 1.11', async function(){         //await driver.sendActions('drag', {fromX: 192, fromY:711, toX:216, toY:236, duration: 1.11});         Await driver.swipe(192, 500, 216, 236, 1.11);     }); Running prompt        Drag: 192, 711, 216, 236, 1.11:      TypeError: driver.swipe is not a function       At Context. (test1.spec.js:53:22)

problem

  1. Does macaca not support swipe, but see the question and answer that 2016 is supported? How should I use this? 2, if it is not supported, I want to slide the list (ios) to a certain item, how to achieve it, thank you

macaca-bot avatar Mar 27 '19 07:03 macaca-bot