Add Bookmark

Use cases / Moving from Auto.js layout analysis

Auto.js can’t find WeChat controls? Check for an empty layout

If Auto.js can’t find a control in WeChat, start by using Inspect Layout in the Dev Tools App on a screen you can reliably reopen. Then inspect the WeChat screen that caused trouble. If you can select the control and its ID is blank, check its text, class and parent. If the whole screen has no selectable nodes, check which window the tool is reading.

1. Check a screen with a known readable node

If WeChat is already on its public welcome screen, check the Log in control. If you are signed in, use a public screen you can open without signing out. The LINE welcome screen below shows the same check in English. In the standard edition of Dev Tools, Inspect Layout is a Pro tool.

On a Xiaomi 13 running Android 15, an earlier capture of the Simplified Chinese WeChat welcome screen showed the Log in button as android.widget.Button, resource ID com.tencent.mm:id/mje, and parent android.widget.RelativeLayout. Use the values you get on your own device. WeChat capture in the Simplified Chinese guide

2. Read the problem screen again

  1. 2.1Open Inspect Layout from the App section. Check the accessibility service and floating-window permissions in the prompts.
  2. 2.2Switch to the problem screen in WeChat, let it settle and read it with the floating button. Check that the highlighted position and node text belong to the current screen.
  3. 2.3If a WeChat list produces an empty layout, close the inspection, scroll the list slightly, wait for it to settle and read the screen again. If the result still describes the previous screen, close the inspection and start it again from the intended page.

3. Interpret the result

Feedback