Closed parthlambdatest closed 4 months ago
@parthlambdatest The font rendering differs between browsers and operating systems. That's expected. When you say "incorrect", what baseline do you compare it to? Specifically, on which browser, headed/headless, which os, how did you obtain the baseline screenshot?
@dgozman baseline was captured in the similar environment. The OS of the environment is "Ubuntu". The browser used was Firefox. Os Version: 22.04.4 LTS (Jammy Jellyfish) Geckodriver version: 4.4.1 Firefox version: 126
@parthlambdatest I guess I don't understand the issue then. There are two different screenshots, are they both taken with Firefox on Ubuntu 22.04? Is that reproducible? Does the screenshot change between multiple runs? What exactly is the problem? I would expect the screenshot to be similar when running on the same browser, same os, same version and the same computer - is that not the case?
@parthlambdatest I guess I don't understand the issue then. There are two different screenshots, are they both taken with Firefox on Ubuntu 22.04? Is that reproducible? Does the screenshot change between multiple runs? What exactly is the problem? I would expect the screenshot to be similar when running on the same browser, same os, same version and the same computer - is that not the case?
So the screenshot with the tag expected
is taken using selenium-webdriver (version: 4.21.0), while the screenshot with the tag actual
is captured using playwright (version: 1.44.1). Ideally the result should be the font of both the screenshot needs to be similar but they aren't. This is the issue.
@parthlambdatest Playwright does not guarantee or even aim to produce the same screenshots as selenium-webdriver. If you were getting two different screenshots from Playwright, we would take a look. However, this does not sound like a usecase we support.
Closing as per above. If you have a Playwright-only repro, please file a new issue using the "Bug Report" template.
Version
1.44.1
Steps to reproduce
System Info
Source Code
I am providing that would allow to reproduce the issue locally
test.js
playwright.config.js
Expected behavior
Actual behavior
Additional context
I want to capture screenshots of the URL https://www.cvshealth.com/about.html on different browser. The font weight of the text captured from the URL on different browser doesn't match with the font weight of the text present in the URL.
One can check similar difference on other browser as well by altering the playwright.config.js file. @pinanks FYI
Similar issues
22429