Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

点击问题 #3

Open
pengyanbing84 opened this issue May 14, 2020 · 0 comments
Open

点击问题 #3

pengyanbing84 opened this issue May 14, 2020 · 0 comments

Comments

@pengyanbing84
Copy link

AblSteps.STEP_1 -> {
AblViewUtil.findById("com.ss.android.ugc.aweme:id/aem", 0, object : AniCallBack {
override fun succ(info: AccessibilityNodeInfo?) {
//找到控件
// 在这里可以根据 坐标点击吗?
val click = info!!.performAction(AccessibilityNodeInfo.ACTION_CLICK)
info.refresh()
LogUtils.eTag("控件点击", click);
stepTimeOutCount = 0;

if(contents.isEmpty()){
AblStepHandler.sendMsg(AblSteps.STEP_6)
}else{
AblStepHandler.sendMsg(AblSteps.STEP_2)
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant