This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 8
Aug 2017

Is there a way to automate taking pictures from native ios Camera

  • created

    Aug '17
  • last reply

    Oct '18
  • 7

    replies

  • 1.7k

    views

  • 5

    users

  • 2

    links

@ypotluri i have automated of taking pre-defined images with Simulator. if it is you are looking for -> ping

@ypotluri

  1. to clear all data with simulator use in driver start:
capabilities.setCapability(MobileCapabilityType.FULL_RESET, true);
  1. to push file into simulator use “xcrun simctl addmedia your_deviceOrSimuloator_UDID path_to file”. file will be added to gallery.

Now you can test in Simualtor with Camera functionality of your client. It will open gallery instead and you can just choose some image you just uploaded into it.

1 year later

Can you please provide more details / code snippet related to point 2.

  1. to push file into simulator use “xcrun simctl addmedia your_deviceOrSimuloator_UDID path_to file”. file will be added to gallery.
18 days later

Is it wokable in appium studio also ? Please let me know. I need to inject image in my app.