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

Screenshot issue #256

Closed
RobertoAlvarezCeballos opened this issue Mar 27, 2015 · 3 comments
Closed

Screenshot issue #256

RobertoAlvarezCeballos opened this issue Mar 27, 2015 · 3 comments

Comments

@RobertoAlvarezCeballos
Copy link

Hi,

I've been playing with the library trying to get screenshots as part of my test cases written on Espresso.

All was working well except for one thing. If the activity displays a Dialog and the soft keyboard then the image is not right, is not complete.

Any ideas why? Is this expected?

Let me show you what's happening.

This is my activity without the dialog

1427475332808_loginactivityforgottenpassword

This is the screenshot with the Dialog taken using DDMs

device-2015-03-27-165953

And this is what Spoon is taking as the screenshot. As you can see the keyboard and the dialog don't appear. As the keyboard was hiding the text "Not created and account yet?" this doesn't appear on the picture either.

1427475335937_loginactivityforgottenpassworddialog

Not sure what to do to be honest, any suggestions are welcome.

Thanks.

@JakeWharton
Copy link
Collaborator

Screenshot only works with the window you pass in (i.e., the activity). Dialogs have their own window.

Dupe #4.

@RobertoAlvarezCeballos
Copy link
Author

First of all thanks for your time, that was fast 👍

I guess this is a known handicap for other people as well, I see what I can do. It would be nice to see the activity with the Dialog on top.

Thanks again.

@JakeWharton
Copy link
Collaborator

We feel the same pain. Unfortunately no one was working on fixing it up
until recently. Hopefully we can address in the next months.

On Fri, Mar 27, 2015 at 1:09 PM RobertoIDL [email protected] wrote:

First of all thanks for your time, that was fast [image: 👍]

I guess this is a known handicap for other people as well, I see what I
can do. It would be nice to see the activity with the Dialog on top.

Thanks again.


Reply to this email directly or view it on GitHub
#256 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants