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

Verify the color of an element using Detox #3557

Closed
Skaramus1990 opened this issue Aug 16, 2022 · 1 comment
Closed

Verify the color of an element using Detox #3557

Skaramus1990 opened this issue Aug 16, 2022 · 1 comment

Comments

@Skaramus1990
Copy link

Skaramus1990 commented Aug 16, 2022

Description

Hello there!

From time to time I need to validate the color change of an element after a click. Couldn't find a solution at the moment. I would be grateful for any information about my problem.

const attr = await element(by.id("the id")).getAttributes();
console.log(attr);

this prints out the height, width, etc. but not the styles.

Your environment

Detox version: 19.7.0
React Native version: 0.67.3
Node version: 10.7.0
Device model: iPad Pro (9.7-inch)
OS: MacOs Monterey / IOS
Test-runner (select one): cucumber

@d4vidi
Copy link
Collaborator

d4vidi commented Aug 16, 2022

Thanks @Skaramus1990! This is in fact a dup of #3297

@d4vidi d4vidi closed this as completed Aug 16, 2022
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