I am a beginner in the world of appium automation. Currently, I am attempting to automate an iOS native app using the following stack: appium-webdriverio-javascript-jasmine.
Here is some information about my environment:
Appium Desktop APP version (or git revision) that is causing the issue,
App Version: 1.20.2
Desktop OS/version where Appium is running: macOS Big Sur 11.2.3
Node.js version (if not using Appium.app|exe): v14.16.1
NPM: 6.14.12
Mobile platform/version being tested: 13.3
Real device or emulator/simulator: emulator xcode/appium
Capabilities:
deviceName: "iPhone 12 Pro Max", platformName: "iOS", platformVersion: "14.2", automationName: "XCUItest"
Appium CLI or Appium.app|exe: CLI
How can files be uploaded from photos to an iOS app using appium? App Flow for Upload: There is an upload button that, when clicked/tapped, opens images in the photos app on iOS.
Up to this point, I have tried using push files but it has not been effective.
driver.pushFile("../data/sample.png","");
I am unsure what to pass in the second argument. In my case, these files need to be within the photos app so that they can be chosen for upload upon clicking the upload button. How can I ensure this?