zek
V2EX  ›  微信

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

  •  
  •   zek · Apr 9, 2020 · 2380 views
    This topic created in 2267 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   ·   Solana   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:46 · PVG 06:46 · LAX 15:46 · JFK 18:46
    ♥ Do have faith in what you're doing.