How to capture image using camera in Appium?

How to capture image using camera in Appium?

Is it possible in Android and iOS?

@Priyank_Shah @sai @wreed

I believe you can launch camera activity in Android, but you can not access the same in iPhone.

These guys can do it. They open up the device and wire up the different components/buttons and give you an api that allows you to access it all:

@Sanoj27 Yes you can capture image using camera in Appium.

Find x and y axis on your device and tap/click on the position.

Eg:
HashMap<String, Double> map = new HashMap<String, Double>();
Thread.sleep(4000);
map.put(“x”, 0.5);
map.put(“y”, 0.9);