Skip to content

Usage of scrolling/swiping methods #75

@ChuevAnton

Description

@ChuevAnton

Hello.
I'm trying to use methods those are responsible for scrolling/swiping.

SEWebElement *cell = [SEBy xPath:@"//UIAApplication[1]/UIAWindow[1]/UIATableView[1]/UIATableCell[17]"];

[driver scrollTo:cell.location];//doesn't work
Appium server log:
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll {"element":"1","xoffset":1,"yoffset":1}
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll 501 3 ms - 112

[driver scrollfromElement:cell xOffset:100 yOffset:100];//doesn't work
Appium server log:
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll {"element":"1","xoffset":100,"yoffset":100}
POST /wd/hub/session/30d3829d-d6a0-4062-9def-1d04c3366b2f/touch/scroll 501 3 ms - 112

[driver flickWithXSpeed:1 ySpeed:1];//doesn't work
Appium server log:
POST /wd/hub/session/e6f04c79-ffef-4923-bdac-9140ffa2fd1c/touch/flick {"xSpeed":1,"ySpeed":1}
POST /wd/hub/session/e6f04c79-ffef-4923-bdac-9140ffa2fd1c/touch/flick 500 3 ms - 260

[driver flickfromElement:cell xOffset:1 yOffset:1 speed:1]; //only this method works

Summary
Only flickfromElement::: method works.
I tried different values of params. Still no result. Could you help me please? What I'm doing wrong?

Thank you for help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions