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

如果selector 同时传入checked 和checkable 参数, 会报错Checkable selector is already defined #48

Open
linxi-1214 opened this issue Dec 29, 2020 · 0 comments

Comments

@linxi-1214
Copy link

猜测原因:src/androidTest/java/com/github/uiautomator/stub/Selector.java: 157 ~ 166

    public BySelector toBySelector() {
        BySelector s = null;
        if ((getMask() & Selector.MASK_CHECKABLE) > 0 && android.os.Build.VERSION.SDK_INT >= 18)
            s = By.checkable(this.isCheckable());
        if ((getMask() & Selector.MASK_CHECKED) > 0) {
            if (s == null)
                s = By.checked(isChecked());
            else
                s = s.checkable(isChecked());   // 猜测是行的函数调用错了?应该是s.checked?
        }
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