-
Notifications
You must be signed in to change notification settings - Fork 673
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
takeScreenshot with fullpage: true is not working as expected #5961
Comments
Thank you for sharing the example. I reproduced the issue. We need time to research it. |
Hi @AlexKamaev I'd like to work on this if this is not fixed. Would also appreciate if you can provide some insights on what might actually have caused this issue (since this is my first contribution in TestCafe). |
We'd appreciate it if you contribute to the development of the application. |
Okay @viktoria2506! |
I believe I am experiencing this issue as well. Has it been fixed? Seems like the PR is still open and not yet merged. |
Hello, @avimredis! This issue is caused by the different behavior between the Chrome and Chrome:headless browsers. We are currently working on this issue and will update this thread once we have any news. |
@Artem-Babich Thanks for the quick reply! |
I am experiencing this as well. Screenshots were full page in the past, but now are cropped. This does occur on Chrome as well as headless Chrome and headless Firefox. |
@uuRae the workaround I found is that if you know about a flaky or failing test and you need to see the full page, you can place this right before the failing step and it will take a full screen await t.takeScreenshot({ I think it's specifically a bug with the screenshot on fail, so this works |
Release v2.1.0-rc.1 addresses this. |
What is your Test Scenario?
I want to create a screenshot of the entire page, thus I use .takeScreenshot({fullPage: true})
What is the Current behavior?
The screenshot generated has a scrollbar. The footer is not entirely visible.
What is the Expected behavior?
The screenshot generated contains the whole page, without any scroll.
What is your web application and your TestCafe test code?
https://advancedinstaller.com/blog/page-1.html
Steps to Reproduce:
Your Environment details:
The text was updated successfully, but these errors were encountered: