Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: fix android launchBrowser.pkg option (#34262)

Simon Knott75d2661497b0
diff --git a/docs/src/api/class-androiddevice.md b/docs/src/api/class-androiddevice.md
index 729b36f922..86b003638b 100644
--- a/docs/src/api/class-androiddevice.md
+++ b/docs/src/api/class-androiddevice.md
@@ -136,7 +136,7 @@ Launches Chrome browser on the device, and returns its persistent context.
### option: AndroidDevice.launchBrowser.pkg
* since: v1.9
-- `command` <[string]>
+- `pkg` <[string]>
Optional package name to launch instead of default Chrome for Android.
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index 2605af04c4..21b531b07a 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -16607,11 +16607,6 @@ export interface AndroidDevice {
*/
colorScheme?: null|"light"|"dark"|"no-preference";
- /**
- * Optional package name to launch instead of default Chrome for Android.
- */
- command?: string;
-
/**
* Specify device scale factor (can be thought of as dpr). Defaults to `1`. Learn more about
* [emulating devices with device scale factor](https://playwright.dev/docs/emulation#devices).
@@ -16720,6 +16715,11 @@ export interface AndroidDevice {
*/
permissions?: Array<string>;
+ /**
+ * Optional package name to launch instead of default Chrome for Android.
+ */
+ pkg?: string;
+
/**
* Network proxy settings.
*/