Attache a file into attachment filed Android Chrome

Hi all,

After some couple days trying to find out solution, I gave up and really need you guys help.

I wanna know: does appium support to upload a file into attachment field on Android Chrome?

I have a web application and I could do that on Chrome PC and I wanna do same thing on Android Chrome for that app.

Thanks!

@willosser
Do you have any idea on this one?

If it were me, I would just treat this like a normal application, identify the resource-ids or texts of the fields you need to manipulate and do so like it was your application – click in the field, identify the resulting screen, click the appropriate image.

It may be that you can use Appium’s chrome driver for this but I haven’t used that yet.

Does attaching a file support on iOS simulators?

@Bhuvan we attaching photo file into iOS Simulator using “xcrun simctl addmedia”

Thanks Aleksei for your reply, but did not understnd how i should used it in my code, i too have the same scenario wherein i need to attach a photo from photo gallery. How do i get the coordinates of the photo gallery?

just run this command in terminal and you will understand what more needed.

Do we have any way to add a file to Documents folder into an Android device?

seems this is the way