wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.21k stars 1.92k forks source link

Return more information in .getAttributes() #3116

Open noomorph opened 2 years ago

noomorph commented 2 years ago

@asafkorem says in https://github.com/wix/Detox/pull/3009:

Just to point out, it seems like there are more attributes that we can provide with this API (see https://reactnative.dev/docs/accessibility), like accessibilityHint, or accessibilityState.. Sure, out of this PR scope. I'm talking about a change that requires both Android and iOS implementations.

@asafkorem, could you elaborate on this, please? Don't hesitate to change the initial issue description or title if necessary.

asafkorem commented 2 years ago

Taking a look at the iOS implementation, it seems that we can simply provide more UIView's attributes, specifically of accessibility information (apple docs) like the mentioned accessibilityHint, or accessibilityState .. I didn't looked at the Android code but there's no reason that we won't have these attributes easily accessible.

This will allow us to be correlated with RN's accessibility properties (https://reactnative.dev/docs/accessibility).

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this reporsitory, read this discussion.

stale[bot] commented 2 years ago

The issue has been closed for inactivity.

d4vidi commented 2 years ago

@asafkorem @noomorph let's reiterate. This sounds like it should be reopened.

asafkorem commented 2 years ago

Also relevant: https://github.com/wix/Detox/issues/3203 (see my comment).

d4vidi commented 2 years ago

Also, accessibilityRole (and probably accessibilitySubrole) could definitely be also relevant while we're at it (as suggested in #3301).

Sumit2202 commented 1 year ago

It's still a useful feature, even in 2023, any plans of supporting this feature soon?

RayOei commented 8 months ago

Yes, please! I am running into the issue as noted in #3203

d4vidi commented 8 months ago

I don't see us taking this in the near future. We could definitely use contributions.