mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: add android requirements to the api docs page (#8014)
This commit is contained in:
parent
5ace65121e
commit
b6d2c86d66
@ -3,6 +3,21 @@
|
|||||||
|
|
||||||
Playwright has **experimental** support for Android automation. See [here](./mobile.md) for more information. You can access android namespace via:
|
Playwright has **experimental** support for Android automation. See [here](./mobile.md) for more information. You can access android namespace via:
|
||||||
|
|
||||||
|
*Requirements*
|
||||||
|
|
||||||
|
* Android device or AVD Emulator.
|
||||||
|
* [ADB daemon](https://developer.android.com/studio/command-line/adb) running and authenticated with your device. Typically running `adb devices` is all you need to do.
|
||||||
|
* [`Chrome 87`](https://play.google.com/store/apps/details?id=com.android.chrome) or newer installed on the device
|
||||||
|
* "Enable command line on non-rooted devices" enabled in `chrome://flags`.
|
||||||
|
|
||||||
|
*Known limitations*
|
||||||
|
|
||||||
|
* Raw USB operation is not yet supported, so you need ADB.
|
||||||
|
* Device needs to be awake to produce screenshots. Enabling "Stay awake" developer mode will help.
|
||||||
|
* We didn't run all the tests against the device, so not everything works.
|
||||||
|
|
||||||
|
*How to run*
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { _android: android } = require('playwright');
|
const { _android: android } = require('playwright');
|
||||||
```
|
```
|
||||||
|
14
types/types.d.ts
vendored
14
types/types.d.ts
vendored
@ -9158,6 +9158,20 @@ export {};
|
|||||||
* Playwright has **experimental** support for Android automation. See [here](https://playwright.dev/docs/mobile) for more information. You can
|
* Playwright has **experimental** support for Android automation. See [here](https://playwright.dev/docs/mobile) for more information. You can
|
||||||
* access android namespace via:
|
* access android namespace via:
|
||||||
*
|
*
|
||||||
|
* *Requirements*
|
||||||
|
* - Android device or AVD Emulator.
|
||||||
|
* - [ADB daemon](https://developer.android.com/studio/command-line/adb) running and authenticated with your device.
|
||||||
|
* Typically running `adb devices` is all you need to do.
|
||||||
|
* - [`Chrome 87`](https://play.google.com/store/apps/details?id=com.android.chrome) or newer installed on the device
|
||||||
|
* - "Enable command line on non-rooted devices" enabled in `chrome://flags`.
|
||||||
|
*
|
||||||
|
* *Known limitations*
|
||||||
|
* - Raw USB operation is not yet supported, so you need ADB.
|
||||||
|
* - Device needs to be awake to produce screenshots. Enabling "Stay awake" developer mode will help.
|
||||||
|
* - We didn't run all the tests against the device, so not everything works.
|
||||||
|
*
|
||||||
|
* *How to run*
|
||||||
|
*
|
||||||
* ```js
|
* ```js
|
||||||
* const { _android: android } = require('playwright');
|
* const { _android: android } = require('playwright');
|
||||||
* ```
|
* ```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user