How to handle images by using Appium?

Hi everyone,
Please tell me the way to handle images in Appium.?

Thanks in advance…!!!

Hi all,
Even i am facing the same issue. The images are not identified in UIautomator…
So i tried the below command

TouchAction element=new TouchAction(driver);
element.longPress(x, y).perform();

When i executed it gave me dropdown which showed me VIEW option,. Later i clicked on it and openend the image…

Is there any better approach to open an image???

Please help…
Any Suggestions would be helpfull

Thanks in advance

Hi,

Are you looking to handle images from device gallery, which opens through an app?

Thanks,
Sujata

No while directly accessing the gallery images.

Hi,

I have not tried that yet,xpath might help.
Could you provide the scenario for you are looking at with images?

Thanks,
Sujata

Hi,

As i am new to appium , I was just try to work on zoom and pinch function in appium, So i want to open the gallery and select any image and open it…
Then later zoom or pinch on it…

And the images are not shown in hierarchy to write the xpath…

Thanks,
Sudhanva

Hi Sudhanva,

I will try to work on this and let you know.

Thanks,
Sujata

Can you please tell how you are getting images? From your app you are trying to get OR something else?

Hi,

No i am trying to access the gallery images directly.

thanks,
Sudhanva

Okay…I see… I thought you are trying from app.

Hi all, Thanks for your replies…!!!
How do you handle the images?
Can Zoom and Pinch functions be work on images ?

Thanks in advance,
Bhaskar.

@sujata_kalluri @bhaskar

Hi,

Did anyone found the solution for this issue…?

Thanks,
Sudhanva

Hi,

No, could not find any solution, but will try

Thanks,
Sujata

Please let me know if any one knows , how to handle images by Appium.

suggestions would be much appreciated.

@Hassan_Radi @willosser @jonahss @kirill @rgonalo
Thanks,
Bhaskar.

Any one help me about this.?

Hi @bhaskar

Can i know what is your scenario?

Thanks,
Sudhanva

Hi @sudhanvam,
Thanks for your reply…!!
1.The images can’t identified by Inspector,
2. Can not perform zoom and pinch on Images, etc…

Could anyone please help us…

we implemented image recognition with Sikulli. working reliable with iOS and Android. some major functions mentioned here: https://github.com/appium/appium/issues/943

2 Likes