-
Notifications
You must be signed in to change notification settings - Fork 672
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
Screenshots does not work in docker if resized window #1918
Comments
Hello @FredrikSeidl! I've reproduced the bug, need some time to investigate it, thank you for the feedback, I'm trying to find a workaround now. |
I have found that it happens when Chrome window resized to be bigger that virtual screen size. I can't figure out why but looks like that Chrome doesn't works well with Xvfb in this case. The problem can't be reproduced on a real X11 server. As a workaround, you can set bigger virtual screen size by passing environment variables
I think we need to increase default screen size to |
Encountering similar problem while running in Docker within Gitlab CI and already set Xvfb to higher resolution. Still the same errors. |
I get the same error even without resizingWindow. |
Like already mentioned in #1913 , switching to headless mode also resolved this issue. Not sure if it's really related to this, but now it works. |
Also getting same error For failed tests for page with widgets. |
Hi @shaikatz @neilmatillano, could you try to increase Xvfb screen size, and use headless mode?
|
Hi, I get the same error message as mentioned in the first post. |
This issue must be fixed by #2492. I'll notify you when a build with the fix will be published on NPM. Feel free to try the fixed build and reopen the issue if the problem isn't solved in your environment. |
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
Are you requesting a feature or reporting a bug?
Reporting a bug
What is the current behavior?
Screenshots fail when trying to take screenshot after a test has resized the window. This only applies to the docker image.
The error thrown is
What is the expected behavior?
A screenshot should be generated
How would you reproduce the current behavior (if this is a bug)?
Run the code below
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://www.google.com
Test code
Specify your
The text was updated successfully, but these errors were encountered: