-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[🐛 Bug]: Incorrect screenshot size in Ubuntu 24.04 #14660
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
Comments
@GergelyKalmar, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
@harsha509 Could this be related to |
This issue is stale because it has been open 280 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
Not stale, the problem still exists. The window size is flaky regardless of how it is specified. |
Can you try with Firefox and see if it has the same inconsistencies? Most likely this is a chromedriver issue. |
This issue was closed because we did not receive any additional information after 14 days. |
What happened?
We've migrated from Ubuntu 20.04 to Ubuntu 24.04, and suddenly our Selenium screenshot sizes changed.
It seems that the initial window size now includes the search bar / bookmarks bar (and potentially other elements like notification bars), therefore the actual space left for the page content is smaller than the specified window size, even in headless mode. (Tried both the old and new headless modes, the results are the same.)
While the window size is 1800x900 pixels as specified (and as returned by get_window_size), the actual screenshot size is only 1800x708 pixels. Occasionally (for some tests) we also observed widths that were different from the originally specified widths.
It does seem like this might be an issue with Chrome / ChromeDriver, but I wanted to open an issue here as well to see if there's maybe something we can do as a workaround in the meantime.
How can we reproduce the issue?
Relevant log output
Operating System
Ubuntu 24.04
Selenium version
Python 3.12
What are the browser(s) and version(s) where you see this issue?
Chrome for Testing 130.0.6723.69
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 130.0.6723.69
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: