---
title: "u2_webview · 工具 | AwesomeCUA"
url: https://awesomecua.com/zh/resources/github-yuyoungg-uiautomator2-webview/
updated: 2026-11-10
type: tool
lang: zh-CN
---

# u2_webview

一个 uiautomator2 扩展，通过 DrissionPage 经由 CDP 接入 Android 混合应用中的 WebView 页面，使同一个 Python 脚本既能操作原生界面，也能操作 H5 层。

- 目录页面：https://awesomecua.com/zh/resources/github-yuyoungg-uiautomator2-webview/
- English：https://awesomecua.com/resources/github-yuyoungg-uiautomator2-webview/index.md
- 原始来源：https://github.com/YuYoungG/uiautomator2-webview
- 类型：工具
- 审核状态：已审核
- 范围：相关研究
- 运行环境：Android
- 主题：自动化
- 证据核查日期：2026-11-10T06:29:29Z
- ID：github:yuyoungg/uiautomator2-webview

## 范围记录

Installed from PyPI as u2_webview on Python 3.8+; it needs ADB debugging on the device and WebView debugging enabled in the app under test, and uses adbutils for port forwarding. License MIT.

- 完整记录 JSON：https://awesomecua.com/resources/github-yuyoungg-uiautomator2-webview/record.json

## 许可证信息

- 代码：MIT — https://raw.githubusercontent.com/YuYoungG/uiautomator2-webview/HEAD/LICENSE
- 数据：未记录
- 文档：未记录
- 权重：未记录

## 一手证据

- https://raw.githubusercontent.com/YuYoungG/uiautomator2-webview/b820e606eb06d50f4305c46f9d31b35075adeec8/README.md（获取于 2026-11-10T06:29:29Z；SHA-256：30410f539c2f6a878b46757ba4d75e3cd7df9b135b652757282f366a913f66c6）
- https://raw.githubusercontent.com/YuYoungG/uiautomator2-webview/HEAD/LICENSE（获取于 2026-11-10T06:22:32Z；SHA-256：cabc323bfadea97ae0dab1cc1fd11d612f81d3232cc15fecd6380eb0e1709ad8）
