AndroidWebView
Source URL: https://playwright.dev/docs/api/class-androidwebview
AndroidWebView | Playwright
Section titled “AndroidWebView | Playwright”AndroidWebView represents a WebView open on the AndroidDevice. WebView is usually obtained using androidDevice.webView().
Methods
Section titled “Methods”Added in: v1.9 androidWebView.page
Connects to the WebView and returns a regular Playwright Page to interact with.
Usage
await androidWebView.page();Returns
Added in: v1.9 androidWebView.pid
WebView process PID.
Usage
androidWebView.pid();Returns
Added in: v1.9 androidWebView.pkg
WebView package identifier.
Usage
androidWebView.pkg();Returns
on(‘close’)
Section titled “on(‘close’)”Added in: v1.9 androidWebView.on(‘close’)
Emitted when the WebView is closed.
Usage
androidWebView.on('close', data => {});