-
Notifications
You must be signed in to change notification settings - Fork 444
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
Incorrect Resolution when Opening a New Tab in Chrome v128 (Taiko 1.4.1 release) #2733
Comments
await openBrowser({ It seems this issue is inherent to all "Chrome for testing" versions. |
This might be a windows only issue I don't this locally on the mac machines for example
Notice it takes the viewport size. |
It might be a problem only on Windows and only on the latest versions of Chrome, but I am looking for a solution to this issue because I am testing a product that is primarily deployed and run on Windows. |
In the sample you posted
The
|
Yes, that's correct. When opening a new window (or a new tab), the resolution resets. I am currently using Taiko + Gauge with a separate version of Chromium (v. 120.xxxx) and there is no such problem. I want to switch to the current version of Taiko with "Chrome for testing v.128.xxxx", but the volume of tests is too large to redo all the tests in this way. |
We'll need to look into this. But it will probably only be fixed if Chrome for Testing releases a new version with a fix. |
Describe the bug
UPD: The problem is not that screenshots are taken in a different resolution, but that the resolution of the new tab window becomes different from the main one
I often use await screenshot() (it is necessary for my mechanism that compares screenshots using the PixelMatch).
In Chrome v.128, there is an issue:
if screenshots are taken in the main tab with the resolution specified in the setViewPort, then when opening a new tab, screenshots are taken with the browser display resolution. This issue occurs regardless of whether the headless parameter is set to true or false.
In Chrome v.126 and earlyer, this issue was not found.
To Reproduce
await openBrowser({
headless: false,
args: [ "--window-size=1600,900", "--disable-gpu", "--disable-renderer-backgrounding",
"--disable-extensions", "--no-first-run", "--no-sandbox", "--disable-background-networking",
"--disable-sync", "--disable-popup-blocking"] });
await setViewPort({ width: 1600, height: 900 });
await goto('https://the-internet.herokuapp.com/tables');
await screenshot();
await openTab('https://the-internet.herokuapp.com/checkboxes');
await screenshot();
await closeBrowser();
Expected behavior
I expect that screenshots will be taken with the resolution specified in the viewPort, regardless of which tab they are taken in.
Screenshots
If necessary, I can provide the original screenshots
Versions:
The text was updated successfully, but these errors were encountered: