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

Appium Swipe does not work in Mac #427

Open
GitAnushaa opened this issue Apr 22, 2024 · 1 comment
Open

Appium Swipe does not work in Mac #427

GitAnushaa opened this issue Apr 22, 2024 · 1 comment

Comments

@GitAnushaa
Copy link

I recently switched devices from windows to mac. I am currently running my tests using robotframework, Appium, Python.

However, when I run the tests, it looks like swipe action does not work anymore. It does not show any error,but it simply does not swipe the screen.

However, with the same code and same android device connected, if I tried on my windows system (which I was working previously), it works perfectly there. Here are the versions installed:

Package                           Version
Appium-Python-Client              2.11.1
robotframework                    6.1.1
robotframework-appiumlibrary      2.0.0
robotframework-archivelibrary     0.4.2
robotframework-assertion-engine   3.0.3
robotframework-browser            18.3.0
robotframework-oracledb           2.0.2
robotframework-pabot              2.18.0
robotframework-pythonlibcore      4.4.1
robotframework-requests           0.9.7
robotframework-seleniumlibrary    6.2.0
robotframework-stacktrace         0.4.1
Here is the sample code: `

> ${Sign} =   Wait Until Element is Visible. id=ch.post.it.nemo.app.zust.android.next:id/saveImageButton_portrait
> IF    ${Sign}
>         bi.Wait Until Keyword Succeeds       10 sec   0.5 sec   Swipe By Percent    90    90    80    30                           
  ELSE
>        bi.Log To Console    ||--Page is not displayed--||    console=yes END`

Any Appium swipe keyword including Swipe, Swipe By Percent - does not work for me.

Could you please help resolve this issue?

Thank you in advance :)

I did try to match the Appium-Python-Client,robotframework, robotframework-appiumlibrary versions (which you see above) with the versions I have on windows. It still did not work. I am wondering what else might be the cause

@zastress
Copy link
Contributor

I am using Appium-Python-Client==3.2.1 and selenium==4.20.0. Swipe works fine on both Android and iOS.
Make sure to also update Appium itself, along with all webdrivers.

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