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
'by' is a reserved word in Coffeescript #275
Comments
Thanks for pointing this out! Maybe we should add a doc for folks looking to use coffeescript. |
I can start a doc and PR? |
That'd be great! Should go in docs/using-coffeescript.md. |
OK, will get on it tomorrow, i did run into some more Coffeescript issues. |
Alternative workaround for "by" is to use JS escaping with backticks:
|
@Elexy Definitely interested in helping with the Coffeescript doc if you like. Page object pattern looks beautiful in Coffeescript!
|
@cyranix that IS beautiful! |
See e7d9e08 global Closing this issue - if someone wants to write a getting started for coffeescript, please open a PR! |
Ran into this issue using Protractor 0.16.1:
@cyranix workaround worked for me. |
By is only out in 0.17.0. |
|
I Write my tests in CoffeeScript and noticed that Protractor.By. has been replaced by just 'by'. This causes the coffeescript compiler to choke.
http://coffeescript.org/documentation/docs/lexer.html#section-66
This is an easy workaround and not too invasive, but I would like to put this on the list.
The text was updated successfully, but these errors were encountered: