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

Swipe on a left don't work properly - iOS #34

Open
mokena1990 opened this issue Jul 23, 2016 · 1 comment
Open

Swipe on a left don't work properly - iOS #34

mokena1990 opened this issue Jul 23, 2016 · 1 comment

Comments

@mokena1990
Copy link

Trying perform swipe from right to left on element in my app on iPhone (4s) with code:

$this->swipe(210, 121, 50, 121);

But element move down and then on a right.

Remark: On Java swiping occurs correctly.

Appium Version: 1.5.3 (Ara)
Php-client Version: 0.1.0

@F1NaL
Copy link

F1NaL commented Nov 28, 2017

As i undestand method appium not support this method.
I send rest request to appium like this:

public function swipe() {
        $client = new Client();
        $client->post(config('selenium.url') . '/session/' . $this->browser->getSessionID() . '/touch/perform',
            [
                RequestOptions::JSON => \GuzzleHttp\json_decode('[{"action":"press","options":{"x":100,"y":200}},{"action":"wait","options":{"ms":300}},{"action":"moveTo","options":{"x":0,"y":-200}},{"action":"release","options":{}}]')
            ]
        );
    }

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