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

Hi ,

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.

Thanks,
Bhaskar.

  • created

    Jul '15
  • last reply

    May '18
  • 8

    replies

  • 2.3k

    views

  • 4

    users

  • 1

    like

17 days later

Thanks for quick response :slightly_smiling: 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?

Hi,

Have you tried with coordinates..?
driver.tap(fingers, x, y, duration);

1 year later

@bhaskar

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.

9 months later

One very best approach of handling such type of scenario is :slight_smile:
Install APK Info app, Render the information of Camera App,

Note down the Activity no

driver.startactivity("Activityname,“Activityvalue”)
Then perform the actions whatever u want to execute