I am automating iOS application in iPad using Selenium and Appium.
The application has one feature where it opens iPad's default camera application and user can take picture from it.
The requirement is to automate this procedure. i.e. Capture picture using iPad's default camera and use it in application.
Is there any way to automate this?
As far as I know, you can't directly take pictures from your iPad with Selenium/Appium, but there is a tool named AVFoundation that allows you to do so.
There is some documentation about taking pictures
The programming language that is used is Objective-C.
Hope you'll find what you are looking for.
Related
I am struggling with taking ios photo. Is there any possibility to capture photo in iOS real device using Appium? I dont have access to shell and cannot send keys like on Android phone, I also have a problem with tapping on element related to capturing photography. It seems like it is not responding to any tapping/clicks. Is there any API/ way to automate capturing photos using real device camera in iOS?
Also I do not have a problem with picking photography from gallery or uploading it to the phone. I have a problem with clicking on a button responsible for taking photo.
I looked at the internet but most of the solutions are related to the Android phone (which I automated already).
Regards,
Toms
I am trying to implement a functionality where user can take multiple photos one by one on their iPhone device and upload all at once on to the server.
I was able to successfully do the multi selection of photos from gallery using ELCImagePickerController.
However I am unable to figure out, how I should do this using the iPhone camera.
Though, I am trying to do this using Xamarin.iOS the code snippet in Swift would also be fine as I can easily translate it in to C#. Thanks!
I'm building a Cordova app with a video capturing feature. Focusing on iOS devices. I'm currently using the videoCapture plugin. I would like the ability to set the size of the capturing screen to just half the screen (to be able to show content on the phones screen at the same time as the video is captured).
I have been looking in to some Cordova plugins such as SnapsCamera and it seems to do sort of what I need but it lacks documentation and dosen't look well supported.
Any recommendations about other plugins or ways to go from here?
(My knowledge in objective C /Swift is very limited)
I am automating a test where we need to launch camera app , and capture some images/videos. Those captured images/videos will be saved in media library.
Now Since
1. On real iOS device we can not automate camera app using appium, I thought to write and iOS app which will launch Camera , till this step it is fine, I could launch camera but the capture button not be clicked using appium.
Do we have any other way to launch a camera on iOS device using appium and capture some images ?
Part of Apples security model is the Sandbox. You can only play within your own sandbox. Since the camera app is it's own entity you will not have any control over it once it is launched and can not provide testing code to control it.
You will need to either write your own camera control module which you can then control to take pictures using your test tool or you can pre-populate the device with your required images.
I am making an ipad app which uses a camera. i do not have an ipad so i cannot test the app on a device. is there a way to figure out if the camera works by using the output from the simulator?
I'm afraid you're up a creek here. If memory serves all pure going to see is a black screen in simulator. I know it's covered in the developer library but since they're overhauling the portal I can't get to the exact verbiage. It specifically mentions the simulaor can't emulate the accelerometer or camera.