Skip to main content
Transform your testing process with: Company-wide Licences, Test Observability & App Percy
No Result Found

Cross-browser Visual Testing

Learn how to effortlessly see visual changes across different browsers

Percy is an all-in-one visual testing and review platform that allows you to run visual tests using either the BrowserStack SDK or the Percy SDK. Cross-browser visual testing is available for all Percy customers to effortlessly see visual changes across different browsers. You can manage browsers through either Automate or Percy. Learn more.

Based on your browser selection management, refer to the appropriate section:

Percy runs visual tests for all browsers specified in your BrowserStack configuration file. Set the browser version by integrating your test with the BrowserStack SDK with Automate. Use the Automate capability builder to configure various browser names and versions.

In your BrowserStack configuration file, include the following browser details under the platform attribute:

  1. os name
  2. osVersion
  3. browserName
  4. browserVersion

config file

All specified browsers appear under the Device & Browsers drop-down. Select a device, and the build displays separate screenshots for that device and browser, highlighting the visual differences specific to each.

cross browser automate

Usage

Each browser counts as a separate screenshot that counts towards your monthly screenshot usage. For example, a snapshot of your homepage in both Chrome and Firefox will count as 2 screenshots.

Percy currently supports the latest versions of modern browsers, including Chrome, Firefox, Edge, and Safari. Our custom rendering infrastructure automatically manages browser upgrades, versioning, and maintenance every quarter.

Percy runs visual tests for all the browsers that are enabled for the project on the Percy dashboard.

How it works

Because Percy stores the original DOM snapshot and page assets, we simply render the same page within different browsers when generating screenshots. This is handled entirely server-side and has no effect on the speed of your CI run since all rendering and diffing takes place in Percy, like normal.

When cross-browser testing is enabled, each build will show separate screenshots for each browser, highlighting the visual diffs specific to each. The number of diffs for each browser will appear over the browser icon on your build.

Percy - Cross Browser Visual Testing

Keep in mind that you will occasionally see different visual diff counts for each browser because each renders slightly differently. Catching those browser-specific visual regressions is an advantage of cross-browser testing.

Enabling and disabling browsers

By default, Chrome, Firefox, Edge and Safari are enabled for each new project. Browsers can be enabled or disabled for any individual project at any time.

Enabling Browsers

To enable or disable a browser, you will get the “browsers selection” option available in the created Project Settings.

  1. Create a new Percy project and select “Percy” in Browser Selection to be handled by settings.
  2. Click the Browsers tab. Select browsers to handle cross-browser testing for captured snapshots.

Browsers tab

Note
You can handle the browser’s management at the project level for all the individual builds, by selecting the browsers tab at Percy project home page.

Enabling Browsers - all builds

After enabling a browser, a new baseline will be established on the project’s subsequent build. This means that the snapshots in the first build for that browser won’t have a baseline comparison. Read more about our baseline picking logic.

If you disable a browser and choose to re-enable it in the future, we will update the browser to Percy’s newest version and the subsequent build will create a new baseline for that browser.

Browser versions

You can check the browser version information by clicking on the information icon, as shown below:

Information icon

Browser information

Usage

Each browser counts as a separate screenshot that counts towards your monthly screenshot usage. For example, a snapshot of your homepage in both Chrome and Firefox will count as 2 screenshots.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle