I am testing an app that requires the user to send a picture of their ID to validate the creation of their account. Unfortunately, there isn't an option on the application itself to upload a picture directly from device storage, and I am doing the majority of my testing on an android virtual device (via android studio).
Is it possible to send a static picture to android studio when the camera opens up, which is saved on my local machine?
Looking for a way to do this fully from code only. (something like driver.getCurrentCamera().sendFile("/path/to/the/file"))
My framework uses Java.
This is exactly what I am looking to do, was unable to find an answer: https://discuss.appium.io/t/fake-the-camera-feed-with-a-file/7356/3
Similar to this, without saucelabs: https://www.youtube.com/watch?v=NmQ6BEjQBWs&feature=emb_title&ab_channel=SauceLabs (timestamp 0:37 onwards)