serhatbolsu / robotframework-appiumlibrary

AppiumLibrary is an appium testing library for RobotFramework
Apache License 2.0
400 stars 291 forks source link

Appium Swipe does not work in Mac #427

Open GitAnushaa opened 5 months ago

GitAnushaa commented 5 months ago

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 commented 3 months ago

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.