Skip to content

AndroidWebView ​

Added in: v1.9

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

Methods ​

androidWebView.page() ​

Added in: v1.9 async

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

Returns

  • Promise<Page>

androidWebView.pid() ​

Added in: v1.9

WebView process PID.

Returns

  • int

androidWebView.pkg() ​

Added in: v1.9

WebView package identifier.

Returns

  • string

Events ​

androidWebView.on('close') ​

Added in: v1.9

Emitted when the WebView is closed.

Event data

  • void

Released under the Apache 2.0 License.