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

BySelector-hasDescendant Have a Bug #57

Closed
fan2597 opened this issue Sep 27, 2015 · 2 comments
Closed

BySelector-hasDescendant Have a Bug #57

fan2597 opened this issue Sep 27, 2015 · 2 comments

Comments

@fan2597
Copy link

fan2597 commented Sep 27, 2015

error:
public static BySelector hasChild(BySelector childSelector) {
return (new BySelector()).hasChild(childSelector);
}

public static BySelector hasDescendant(BySelector descendantSelector) {
    return (new BySelector()).hasDescendant(descendantSelector);
}

public static BySelector hasDescendant(BySelector descendantSelector, int maxDepth) {
    return (new BySelector()).hasDescendant(descendantSelector, maxDepth);
}

They call the constructor error, should call the constructor function to achieve
BySelector(BySelector original)

@fan2597
Copy link
Author

fan2597 commented Sep 27, 2015

android.support.test.uiautomator.By
public static BySelector hasChild(BySelector childSelector)
public static BySelector hasDescendant(BySelector descendantSelector)
public static BySelector hasDescendant(BySelector descendantSelector, int maxDepth)

@JoseAlcerreca
Copy link
Contributor

Please use the android bugtracker for issues related to Espresso, UI Automator, the AndroidJUnit4Runner, rules, etc.
https://code.google.com/p/android/issues/entry?template=Test%20Support%20Library%20bug

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

No branches or pull requests

2 participants