Skip to main content

Prerequisites

Ensure the following components are installed on the system:

  • Node.js (v14 or later)

  • Playwright with Android automation support

  • ADB (Android Debug Bridge) installed and added to the system PATH

Installation

Install the required Playwright packages using npm:

 npm install playwright
npm install @playwright/test

Environment Setup

Verify that ADB is installed correctly by running the following:

adb version

Enable the following Chrome flag on the Android device:

  • Open chrome://flags in the device browser and enable Enable command line on non-rooted devices.