Could you please let us know, Is there any way to handle Camera App by using Appium.?I'm unable to identify objects inside Camera (Settings, icons,etc..) in Appium Inspector/UIAutomatorviewer.
Any inputs regarding this..!!
Any updates regarding this ?Thanks!
Thanks for quick response I'm automating the camera app. I need to capture an image from camera for my test app. Actually I'm in the camera screen. I just want to capture the image. I'm using this code driver.sendKeyEvent(KeyEvent.KEYCODE_CAMERA) and it's not working. Just tapping on screen will capture the image. Is there any solution for this?
Have you tried with coordinates..?driver.tap(fingers, x, y, duration);
Nope, how to get the x and y ?Thanks Pavithra
You can start camera app by using the “appPackage” and “appActivity”.
Once the app starts you have the control on all the elements, use appium inspector.
The above approach worked for me.
One very best approach of handling such type of scenario is
Install APK Info app, Render the information of Camera App,
Note down the Activity no
Then perform the actions whatever u want to execute