Add Bookmark

Use cases / Moving from Auto.js layout analysis

Auto.js can’t find a view? Check the current Activity and layout

If an Auto.js selector stops finding a button after an app update, start Record Activity in the Dev Tools App to see which screen opened. Use Inspect Layout on the same screen to check the actual node, its resource ID and its parent. These tools are part of the Pro features in the standard edition.

1. Write down the expected screen and view

Pick a sequence you can repeat, such as opening the app and tapping a button before the selector fails. Keep the old app version, screen name, button text and resource ID if you have them. If your notes only say “the first OK button,” add the surrounding text or the list item that contains it.

2. Record one attempt, then inspect the view

  1. 2.1Open Record Activity from the App section, start listening and switch to the target app. If a screen appears only briefly, try the accessibility event method and check whether the entry appears in history.
  2. 2.2After reproducing the issue, copy the package and Activity class next to the relevant time. Return to the same screen, open Inspect Layout and select the control or label.
  3. 2.3Repeat the path once to confirm the order of the screens and the selected node. Stop Record Activity when you have the evidence you need.

3. Tell a navigation change from a view change

A captured example on the Xiaomi 13 was the LINE welcome screen, package jp.naver.line.android, class com.linecorp.line.registration.ui.RegistrationActivity, Log in label jp.naver.line.android:id/lds_box_button_text. The enclosing control has the resource ID jp.naver.line.android:id/login. Activity recording walkthrough / View ID and layout walkthrough

Feedback