Web Tests on Mobile Browsers
With a simple import change and a configuration update, you can use your existing Playwright tests to also do native browser testing with the Appetize integration
Prerequisites
Before you begin, make sure you have the following:
Preferred Android Device: You will need one of our Android devices with Chrome 87 or higher (Android 13+ is recommended for best results).
ADB Installed: Ensure Android Debug Bridge (ADB) is installed on your system.
Enable ADB Tunnel: Enable ADB tunnel on the session used.
Configuration
If you haven’t set up Appetize with Playwright yet, we recommend look at our Getting Started guide. After successfully integrating Appetize, open the playwright.config.ts
file to configure the settings for your desired device for native browser testing. If you are already using Playwright for web testing, you can easily add a new project as shown below.
For the buildId, we suggest using your device's sandbox ID, which can be found in the URL bar. Look for the identifier that starts with standalone_***
and use that as your buildId. Here’s an example configuration:
Page Fixture
The Appetize integration overrides the default page fixture to automatically determine when to use a standard browser (e.g., Chrome or Firefox) versus a native device browser for testing. This means all the logic is handled for you, simplifying the testing process.
Update your imports
To get started, simply update your imports. Change your Playwright import for test
to the Appetize version:
From:
To:
Run your tests
Last updated