Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios列表滑动问题 #901

Open
liurj opened this issue Mar 27, 2019 · 1 comment
Open

ios列表滑动问题 #901

liurj opened this issue Mar 27, 2019 · 1 comment

Comments

@liurj
Copy link

liurj commented Mar 27, 2019

我用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)滑动到某一项该怎么实现,谢谢

@macaca-bot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants