|
In my testing workflow, I often need to capture full-page screenshots to ensure that all elements on the page are correctly displayed and rendered. However, the default behavior of self.save_screenshot() captures only the visible portion of the page within the dimension of the screen. |
Answered by
mdmintz
Mar 22, 2024
Replies: 1 comment
|
Duplicate of #902 (comment) If you run tests using Also try examples/test_image_saving.py |
0 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duplicate of #902 (comment)
If you run tests using
--headlessmode, you'll get the full page screenshot.Otherwise they will be the same size as the browser window.
Also try examples/test_image_saving.py
It shows you how to take screenshots of specific sections of web pages.