-
Notifications
You must be signed in to change notification settings - Fork 476
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 does not properly capture the screen #350
Comments
Is anyone able to help me investigate this? What needs to be done in order for the screenshot to be captured properly? Could anyone provide any resources? |
I use FalconSpoon class from Falcon : https://github.com/jraska/Falcon#spoon-compat |
I was able to get my screenshot to work by using screengrab(which i beleive is forked from spoon) and modifying the code a bit. it would be nice to see this go into spoon |
Falcon worked great as well! |
I met the same issue. This project is a testing custom view draw as expected. |
Screenshots are always helpful. What is Spoon capturing? What is Spoon supposed to be capturing? Spoon doesn't do anything fancy to take screenshots. So drop some breakpoints in the source and see what dimensions your View is and compare it with what you think it should be. Specifically, put a breakpoint here: https://github.com/square/spoon/blob/master/spoon-client/src/main/java/com/squareup/spoon/Spoon.java#L94 |
dumb question: is it only this screen that problems exist? or is Spoon always chopping that portion of the window? |
yea, it vary by the screen. the other screens in this app are webviews and On Thu, Sep 29, 2016 at 3:52 PM, Jason Atwood [email protected]
|
What do you mean by custom drawn? Do you mean a custom view (i.e. your own subclass of View)? If so then that shouldn't be a problem. If you mean that it is rendered in a custom way then that could definitely be the source of your trouble. Find out if that view is creating its own What happens if you add a "placeholder" view to your view hierarchy that "sit's behind" the missing part? Does Spoon correctly capture that? |
Dupe of #4. |
I am using spoon to take some screen shots on our new 'bottombar' in an android app during a UI test, and realized that it is not capturing our left most button, even though i see that it was on the screen during the espresso test.
This left button is being drawn, whereas the buttons that show up correctly are done with svgs. Any idea why Spoon would not capture whats actually visible?
Thanks so much!
The text was updated successfully, but these errors were encountered: