Android自动化功能-使用Appium获取android页面节点元素信息

一、appium安装和使用

官方网站:https://appium.io/docs/en/latest/

github地址:https://github.com/appium/appium

安装步骤:

  1. 首先需要安装node.js

  2. 安装好node.js之后使用npm安装 appium

    复制代码
    npm install -g appium
    appium -v # 检查安装版本
  3. appium直接安装uiautomator2

    复制代码
    appium driver install uiautomator2
  4. 命令行中启动 Appium

    复制代码
    appium server --allow-cors
  5. 打开Appium Inspector软件,输入启动参数:

    复制代码
    {
      "platformName": "Android",
      "appium:deviceName": "Android  Device",
      "appium:automationName": "UiAutomator2"
    }

成功启动后,如下图就可以获取节点元素信息了

二、android无障碍服务自动化框架

https://github.com/ven-coder/Assists

使用方法github上有教程

相关推荐
zh_xuan21 小时前
Android 传统view嵌入compose
android
ZHANG13HAO1 天前
Android 13 AOSP 内置 NekoTTS 中文免费商用 TTS 完整流程
android
许杰小刀1 天前
ctfshow-web文件包含(web78-web86)
android·前端·android studio
中海德--陈顺真1 天前
西屋模块 1C31129G01
自动化
ManageEngineITSM1 天前
IT服务台为什么越忙越低效?
人工智能·自动化·excel·itsm·工单系统
恋猫de小郭1 天前
Android 上为什么主题字体对 Flutter 不生效,对 Compose 生效?Flutter 中文字体问题修复
android·前端·flutter
三少爷的鞋1 天前
不要让调用方承担你本该承担的复杂度 —— Android Data 层设计原则
android
李李李勃谦1 天前
Flutter 框架跨平台鸿蒙开发 - 创意灵感收集
android·flutter·harmonyos
飞Link1 天前
逆向兼容的桥梁:3to2 自动化降级工具实现全解析
运维·开发语言·python·自动化