zek
V2EX  ›  微信

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

  •  
  •   zek · Apr 9, 2020 · 2319 views
    This topic created in 2225 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   ·   4487 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:31 · PVG 13:31 · LAX 22:31 · JFK 01:31
    ♥ Do have faith in what you're doing.