Uncaught SyntaxError: Unexpected token ) when trying out the sample...
See original GitHub issueI’ve a problem only with trying out the sample from your readme page!
1) Error on page "http://devexpress.github.io/testcafe/example/":
Uncaught SyntaxError: Unexpected token )
and the error will be shown here
> 8 | .typeText('#input', 'Peter Parker')
I’ve used ChromeCanary for my test and I was running test cafe version 0.9.0 Do I need any specific Node version? I’m using 6.5.0 here on a MacOS system. Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:38 (18 by maintainers)
Top Results From Across the Web
SyntaxError: Unexpected token in JavaScript | bobbyhadz
The "Uncaught SyntaxError: Unexpected token" occurs for multiple reasons: · The error is also caused if you're making an HTTP request to a...
Read more >SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >Uncaught SyntaxError: Unexpected token : - Stack Overflow
An "unexpected token" is likely some illegal character code. Such a code is likely not to show up when you print to console....
Read more >Uncaught SyntaxError: Unexpected token < - JavaScript - iDiallo
All it means is that the interpreter is expecting JavaScript or JSON and you are feeding it HTML/XML. If you don't think you...
Read more >Troubleshoot 'Uncaught SyntaxError: Unexpected token u in ...
The 'Uncaught SyntaxError: Unexpected token u in JSON at position 0' error is caused when the client has been asked to execute JSON.parse() ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eriklharper, thank you for information! I have reproduced problem and created separate issue, you can track it here, As a temporary workaround you can use " --skip-js-errors" launch option:
testcafe --skip-js-errors chrome test.js
The TestCafe “Getting Started” sample works if you insert parentheses like so:
fixture ('Getting Started')
.page ('http://devexpress.github.io/testcafe/example');