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

Support getAttributes on Android #2083

Closed
plaa opened this issue May 25, 2020 · 10 comments · Fixed by #2771
Closed

Support getAttributes on Android #2083

plaa opened this issue May 25, 2020 · 10 comments · Fixed by #2771

Comments

@plaa
Copy link

plaa commented May 25, 2020

Is your feature request related to a problem? Please describe.
In #445 a way to retrieve attributes (e.g. element text) was requested. The issue was closed by introducing getAttributes which currently is iOS-only.

This issue is to track support for Android.

Describe the solution you'd like
Ability to fetch element attributes / text on Android.

Describe alternatives you've considered
Hacks described in #445 including detox-getprops package.

@RikSchefferOberon
Copy link

is there any news on this?

@d4vidi
Copy link
Collaborator

d4vidi commented Jan 14, 2021

Sorry, no. We don't have the capacity I'm afraid.

@DenysMoro
Copy link

It will be very nice to have it for Android as well

@MuckT
Copy link

MuckT commented Jun 2, 2021

Getting TypeError: element(...).getAttributes is not a function when running await element(by.id('<elementId>')).getAttributes() on Android in 18.14.0. Which differs from the documentation. Looking at the PR that closed this issue, it doesn't look like the types were updated to support this feature on Android.

@d4vidi
Copy link
Collaborator

d4vidi commented Jun 2, 2021

Indeed, it is missing from the types list.
Please apply a // @ts-ignore for now.

@sandeep-bastola
Copy link

In Detox 18.14.0 this issue is seen in android : Test Failed: com.google.android.material.slider.Slider , when used the function getAttributes(). Anyone faced similar issue ?

@d4vidi
Copy link
Collaborator

d4vidi commented Jun 17, 2021

@sandeep-bastola could you please submit an android bug with all the details?
https://github.com/wix/Detox/issues/new/choose

@sandeep-bastola
Copy link

#2846

@plaa
Copy link
Author

plaa commented Oct 1, 2021

The documentation still says "iOS only". Could the documentation be updated? Thanks!

@d4vidi
Copy link
Collaborator

d4vidi commented Oct 3, 2021

@plaa your link is associated with an old branch. This is the updated documentation.

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

Successfully merging a pull request may close this issue.

8 participants