zek
V2EX  ›  微信

求教,关于 adb shell 用 uiautomator 获取微信页面的问题

  •  
  •   zek · Apr 9, 2020 · 2615 views
    This topic created in 2392 days ago, the information mentioned may be changed or developed.

    以下是代码:

    var shell = require('shelljs');

    shell.exec('adb shell uiautomator dump /sdcard/dump.xml');

    在执行:'adb shell uiautomator dump /sdcard/dump.xml' 这个命令时有一定几率报错,

    错误信息如下:ERROR: null root node returned by UiTestAutomationBridge.

    手机系统是 MIUI11

    有没有大佬懂的,帮忙看看。谢谢!

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5326 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:22 · PVG 14:22 · LAX 23:22 · JFK 02:22
    ♥ Do have faith in what you're doing.