AndroidViewClient icon indicating copy to clipboard operation
AndroidViewClient copied to clipboard

is there any way to save snapshot on device?

Open jrafaaael opened this issue 1 year ago • 1 comments

title I'm trying to take a screenshot and save it on device. I've tried client.device.takeSnapshot(reconnect=True).save("name.png") but it store the screenshot on desktop. I've read docs and look for similar question buy I haven't found something useful so far

jrafaaael avatar Nov 03 '24 02:11 jrafaaael

Hey @jrafaaael , what's the use case? AndroidViewClient reads the framebuffer directly, so there's no file created. However, CulebraTester2-public creates a temp file to store the image and it's deleted after returning its content, so commenting out https://github.com/dtmilano/CulebraTester2-public/blob/9906b44aeaae186a3bf6f5707e67a161934d5953/app/src/main/java/com/dtmilano/android/culebratester2/location/UiDevice.kt#L244 leaves the file on the device.

dtmilano avatar Nov 05 '24 07:11 dtmilano