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
Last updated
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
Last updated
Before you begin, make sure you have the following:
Preferred Android Device: You will need one of our with Chrome 87 or higher (Android 13+ is recommended for best results).
ADB Installed: Ensure is installed on your system.
Enable ADB Tunnel: Enable on the session used.
If you haven’t set up Appetize with Playwright yet, we recommend look at our 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 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:
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.
To get started, simply update your imports. Change your Playwright import for test
to the Appetize version:
From:
To: