-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[🐛 Bug]: Chrome Driver 137.0.7151.5500 resolution scaling issues #15851
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
@ciconq, thank you for creating this issue. We will troubleshoot it as soon as we can. Selenium Triage Team: remember to follow the Triage Guide |
Please verify that this issue still occurs with the latest version. If it no longer applies, you can close this issue or update your comment. This issue will be marked "awaiting answer" and may be closed automatically if no response is received. |
As mentioned above using Selenium |
The only suggestion is that the correct syntax is:
Aside from that, it all looks like Chrome has changed its behavior. You should ask them, |
Hi, @ciconq. You can see if the feature is passing in the Web Platform Tests. If it is something new, please create an issue with the ChromeDriver team. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Hello,
I am running tests both locally and on an agent(Azure DevOps) that is on a virtual server -
Microsoft Windows Server 2022 Standard
. The tests are ran under the--headless=new
flag. Some tests have bigger grids which are not always displayed on the entire screen but they were working fine under Chrome Driver135.0.7049.4200
.I had to add the following flags for them to pass again:
--force-device-scale-factor=0.75
--high-dpi-support=0.75
This was working fine both locally and on the server until I had to upgrade to Chrome Driver
137.0.7151.5500
.Now I am noticing some really strange resolution scaling when running tests with different permutations of flags/settings.
1st permutation: Removing both flags from Chrome Driver settings
Resulted in having same resolution both on the server and locally -
800x600
when running tests inheadless
.Running them in
non-headless
resulted in having a resolution -1032x776
on the server and -1552x928
locally.2nd permutation: Removing both flags from Chrome Driver settings but having flag --window-size=1920,1080
Resulted in having same resolution both on the server and locally -
800x600
when running tests inheadless
.Running them in
non-headless
resulted in having a resolution -1032x776
on the server and -1552x928
locally(same as1st permutation
).3rd permutation: Removing both flags from Chrome Driver settings but having resolution set via the driver
Resulted in having same resolution both on the server and locally -
800x600
when running tests inheadless
.Running them in
non-headless
resulted in having a resolution -1032x776
on the server and -1552x928
locally(same as1st and 2nd permutations
).4th permutation: Having both flags --force-device-scale-factor and --high-dpi-support set to 0.75 without any additional resolution flags/settings
Resulted in having same resolution both on the server and locally -
1423x1067
when running tests inheadless
.Running them in
non-headless
resulted in having a resolution -1377x1036
on the server and -2584x1544
locally.5th permutation: Having only --force-device-scale-factor flag set to 0.75 without any additional resolution flags/settings
Resulted in having same resolution both on the server and locally -1423x1067
when running tests inheadless
.Running them in
non-headless
resulted in having a resolution -1377x1036
on the server and -2584x1544
locally(same as4th permutation
).6th permutation: Having only --force-device-scale-factor flag set to 0.7 without any additional resolution flags/settings
Resulted in having same resolution both on the server and locally -1633x1226
when running tests inheadless
.Running them in
non-headless
resulted in having a resolution -1475x1109
on the server and -2769x1655
locally(this worked both locally and on the server forheadless
, fornon-headless
it worked only locally, I guess it failed on the server due to the nearly double less in size resolution).What I can see is that the resolution is the same when running tests in
--headless=new
both on the server and locally for all of the mentioned permutations. On the other hand I guess having different resolution when running tests innon-headless
both on the server and locally might be normal.Additionally I suspect that the resolution was different when running tests in
headless
both on the server and locally for Chrome Driver135.0.7049.4200
but I am not sure but at least it was not defaulting to such low resolution like800x600
(not sure if adding the--disable-mobile-emulation
flag might help but I don't see why it would).P.S. Tried pretty much all of those permutations with Selenium
4.33.0
but still the same outcome(also if it matters I am using a16
inch laptop with a resolution of1920x1200
if that matters, not sure about the server though).Would really appreciate any ideas or suggestions.
Thank you for your time and attention reading this!
Reproducible Code
ℹ️ Last known working version:
4.27.0
The text was updated successfully, but these errors were encountered: