This repository was archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
'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. |
4 tasks
👍 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: