Skip to content

setting resolution #852

Answered by mdmintz
ZoiyoTravez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ZoiyoTravez , is this issue only happening in headless mode for you? self.save_screenshot() calls driver.get_screenshot_as_file(), and it may be that screenshots in headless mode always get the full-page screenshot, regardless of the window size during the test run. Hard to know for sure, because I can't see the browser window in headless mode because there's no visible screen.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants