maestro
maestro copied to clipboard
Command to take screenshots
Is there any command planned to take screenshots? This would be very handy to document changes between different versions of an app.
That would be relatively easy to add, so we will address this soon 👍
@dmitry-zaitsev we can use dadb to take screenshots via adb. I do think that we can go with something like this
adb shell screencasts -p /sdcard/$name
adb pull /sdcard/$name $opt
adb shell em /sdcard/$name
@ca-ke indeed, that is more or less how it would go. If you like to give it a try, I can guide you through the implementation steps
@dmitry-zaitsev and @ca-ke do you folks have a DSL in mind?
Something like:
- takeScreenshot: {file name}
Good news - this is now available in 1.7.0: https://maestro.mobile.dev/reference/take-screenshot
Credit for Android implementation goes to @ragunathjawahar , thank you!
This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. Thank you for helping keep us our issue tracker clean!