Visual Testing on mobile browsers
Learn all about visual testing on mobile browers
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 mobile 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 mobile 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 mobile browser names and versions.
In your BrowserStack configuration file, include the following mobile browser details under the platform
attribute:
- os name
- osVersion
- browserName
- browserVersion
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.
Important changes for mobile browsers
Screenshot width
The width parameter passed while running Percy tests will be ignored for mobile browsers as Percy uses real mobile devices and the screenshot width is fixed for these. Please note that the behavior on desktop browsers remains unchanged.
Portrait mode
All screenshots on mobile browsers will be taken in portrait mode by default. Please refer to these pages to read more about changes in mobile browsers’ behavior:
Currently, Percy supports the following combinations for mobile browsers:
- Safari with iOS
- Chrome with Android (Beta)
We’ll soon add more combinations to this list. Contact us if you’re looking for something specific.
How to access mobile browsers
To access mobile browsers, you will have to upgrade to the Percy Desktop & Mobile plan. If you do not have access to the mobile plan:
-
Reach out to your Percy account owner and ask them to upgrade.
-
If you don’t know the account owner, fill out this form and we will reach out to your account owner.
-
Alternatively, you can request a free trial of the mobile plan using the same form.
If you already have a Percy Desktop & Mobile plan, you can turn mobile browsers on or off using either of the following options:
-
Browser Settings Page: Use this page to view and change the browser coverage for all your Percy projects.
-
Project settings: You can also use the project settings page to toggle browsers on/off
While reviewing diffs, Percy will show separate screenshots for each browser, highlighting the visual diffs specific to each.
Differences between desktop and mobile plans
All features in Desktop and Desktop & Mobile plans are same, except the support for mobile browsers. Please visit the pricing page for a detailed comparison between the desktop and mobile plans.
Important changes for mobile browsers
Screenshot width
The width parameter passed while running Percy tests will be ignored for mobile browsers as Percy uses real mobile devices and the screenshot width is fixed for these. Please note that the behavior on desktop browsers remains unchanged.
Portrait mode
All screenshots on mobile browsers will be taken in portrait mode by default. Please refer to these pages to read more about changes in mobile browsers’ behavior:
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
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!