-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Duplicate of #902 (comment) If you run tests using Also try examples/test_image_saving.py |
Beta Was this translation helpful? Give feedback.
Duplicate of #902 (comment)
If you run tests using
--headless
mode, 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.