I am trying to automate the file upload functionality for mobile application automation. I have some pdf/image file stored in my mobile device which is need to be uploaded. What will be the possible way to automate this scenario?
Asked
Active
Viewed 4,879 times
1
-
1What have you tried so far? – Andrei Suvorkov Jul 27 '18 at 07:03
-
used the sendkeys(file location) method but it is throwing exception . – Vivek Upadhyay Jul 27 '18 at 07:16
-
Could you please update the question with the relevant code and details, it will help us to help you :) – Andrei Suvorkov Jul 27 '18 at 07:18
1 Answers
3
Unfortunately, there is no way to repeat Selenium javascript trick with sendKeys
with native mobile application:
you need literally do everything via UI - open image selection, select image and etc.
The only thing that Appium can assist with is to upload files to device, so your device can be cleaned and populated only during the test.

dmle
- 3,498
- 1
- 14
- 22