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

var desc = o.contentDescription失效 #84

Open
koftt opened this issue Aug 1, 2019 · 0 comments
Open

var desc = o.contentDescription失效 #84

koftt opened this issue Aug 1, 2019 · 0 comments

Comments

@koftt
Copy link

koftt commented Aug 1, 2019

问大佬个问题 更新支付宝后,获取不到控件描述desc 了, 只能获取text ,那么
var filters = className("android.widget.Button").filter(function (o) {
var desc = o.contentDescription;

        return (null !== desc.match(/^收集能量|^$/));
    }).find();   失效   

有什么替代 var desc = o.contentDescription; 获取text的方法吗? 后续可以弄成先判断有desc 就用这个,没有就获取text

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