baidu / baidu/Cafe

自动遍历(traveler)过程中,层次(Level)是如何加减的?

Open
#9 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
367
Forks
209
PR merge metrics
No merged PRs in 30d

Description

我对你自动遍历代码中level处理一部分不太理解,好像就看到有一个getCurrentLevel(level)的方法。
我的第一感觉是,每一个Activity一个层次,有Activity的跳转level加1,goBack的话level减1,可是对于很多隐藏控件或者弹出框其实属于同一个Activity,就不好做判断了。
请问Cafe框架在做自动遍历的时候是如何做Level处理的?尤其是遇到弹出框这类情况?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the getCurrentLevel(level) method through the automatic traversal flow, including Activity transitions, goBack, hidden controls, and pop-up dialogs. Confirm how level changes in each case, then document the behavior and answer the question with concrete examples from the existing implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
documentation, mobile-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.