-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
expose a method that returns the hierarchy for a given element #76
Comments
Doesn't the hierarchy inspector in Xcode give this information? Is it not enough? |
imagine a log in CI with this data.. cross platform for iOS and Android |
I don't see this being useful outside of debug. A hierarchy is often huge and ugly. Why would you fill the CI log with it? On error, it should be printed. But per test? |
Yes. CI plus -
|
@LeoNatan I agree for the app level but hierarchy starting of a specific element down can be not so bad. |
As I see it, we should not let the user use this function, but include a print of it if a test fails.
|
We already print on failure. |
I don’t think this is needed. Detox is not a debugging tool. We already print the hierarchy in cases of failure, and we will improve the error messages to display a better information in the future. |
Basically, we need the method to return GREYElementHierarchy for a given element which can be based on this code: 45a9c19#diff-6d470f1f5e297378206088228e32fd1cR17
JS Syntax should be something like this:
element(by.id('someId')).printHierarchy();
The text was updated successfully, but these errors were encountered: