SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.23k stars 8.12k forks source link

[🐛 Bug]: vertical size not matching #14509

Open ludodul opened 3 days ago

ludodul commented 3 days ago

What happened?

Hello, I need to take some screenshots from a document, so I resize the screen size then take a screenshot. The problem is that the vertical size is lower than the size I asked for. If I ask for 900x300, I only have 884 x 153 screen size. I did not have this problem some weeks or months ago.

How can we reproduce the issue?

driver.Manage().Window.Size = new System.Drawing.Size(900, 300);
 Screenshot ss = ((ITakesScreenshot)driver).GetScreenshot();

Relevant log output

no logs

Operating System

Wibdows 10

Selenium version

c# 4.24

What are the browser(s) and version(s) where you see this issue?

chrome 128

What are the browser driver(s) and version(s) where you see this issue?

ChromeDriver 128.0.6613.13700

Are you using Selenium Grid?

No response

github-actions[bot] commented 3 days ago

@ludodul, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] commented 3 days ago

Hi, @ludodul. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.