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

Issue with 'grabAttributeFrom' method #407

Merged
merged 2 commits into from Feb 20, 2017

Conversation

robrkerr
Copy link
Contributor

@robrkerr robrkerr commented Feb 6, 2017

Needed to use 'getAttribute' to grab an attribute from an element - it was just returning 'null' for me otherwise.

…t was just returning 'null' for me otherwise.
@DavertMik
Copy link
Contributor

We need a test for this. In #408 I added instructions for test execution. Could you write a test for this feature? Thanks

@robrkerr
Copy link
Contributor Author

Added a test that this pull request fixes.

In doing so, I realised that the issue was only with custom attributes - that's why the existing test was passing but I was still having issues. This stackoverflow answer explains what was going on: http://stackoverflow.com/questions/10280250/getattribute-versus-element-object-properties/10280487#10280487

@DavertMik
Copy link
Contributor

Thanks for the deep investigation and the fix. Very nice to have this edge cases fixed!

@robrkerr
Copy link
Contributor Author

No problem :)

@DavertMik DavertMik merged commit 3f2dec6 into codeceptjs:master Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants