Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find out what method of screenshot taking is the best #24

Closed
Tracked by #8
mateuszwojtczak opened this issue May 27, 2022 · 4 comments
Closed
Tracked by #8

Find out what method of screenshot taking is the best #24

mateuszwojtczak opened this issue May 27, 2022 · 4 comments

Comments

@mateuszwojtczak
Copy link
Contributor

mateuszwojtczak commented May 27, 2022

Can we use flutter screenshot or maybe we'll have to use the screenshot server like Appium does

@edgarfroes
Copy link

edgarfroes commented Sep 22, 2022

To add some context to this issue, it's only possible to take screenshots on Flutter's native API by using flutter driver instead of flutter test, as per this article.

Also, since Patrol uses XCTest, taking screenshots might not be possible on iOS because of this issue, so, for iOS, this feature might require further investigation.

Useful links:
Generate screenshot using flutter test integration_test command
Take screenshot during Flutter integration tests

@bartekpacia
Copy link
Contributor

bartekpacia commented Nov 9, 2022

flutter screenshot looks like the best way to do this. Compared to native screenshot-taking capabilities that UIAutomator and XCUITest provide, it is simpler to integrate with and more consistent across different platforms (and all of this we get out of the box).

This will require us to add the HTTP server to patrol_cli, as described in this comment.

@bartekpacia
Copy link
Contributor

Closing, let's open a new issue instead of reviving this one.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants