Hi, I want to add a photo from my laptop to an iOS real device native APP Photos during the appium test. I manage to do so for android with following push file command:
driver.pushFile("/mnt/sdcard/Automation/demophoto.png", imageFile);
I have also found instructions for iOS simulator. But when I try this on a iOS real device, I tried
driver.pushFile("demophoto.png", imageFile);
The command seems to be executed, but nothing shows up in the Photos app.
Most instructions I can find only is to address the problem to push file into some app container.
https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/ios/ios-xctest-file-movement.md
I find the bundle ID for Photos from this link: https://emm.how/t/ios-13-list-of-default-apps-and-bundle-id-s/1141, and tried appDriver.pushFile("@com.apple.Photos/demophoto.png", imageFile);
get this error message:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Failed to vend into the application container. Error: InstallationLookupFailed
Does anybody know what’s the right way to do this?