Spec-Zone.ru › Playwright

AndroidWebView

AndroidWebView represents a WebView open on the AndroidDevice. WebView is usually obtained using androidDevice.webView().

Methods​

page​

Connects to the WebView and returns a regular Playwright Page to interact with.

Usage

await androidWebView.page();

Returns

  • Promise<Page>

pid​

WebView process PID.

Usage

androidWebView.pid();

Returns

  • number

pkg​

WebView package identifier.

Usage

androidWebView.pkg();

Returns

  • string

Events​

on('close')​

Emitted when the WebView is closed.

Usage

androidWebView.on('close', data => {});

© 2026 Microsoft
Licensed under the Apache License, Version 2.0.
https://playwright.dev/docs/api/class-androidwebview

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API