question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PhantomJS support

See original GitHub issue

I’m submitting a feature request

  • Library Version: 1.0.1 (I think)

Please tell us about your environment:

  • Operating System: Arch Linux
  • Node Version: v6.3.1
  • NPM Version: 3.10.3
  • Browser: PhantomJS
  • Language: TypeScript

Current behavior: trying to use phatomjs results in the following error. I installed "karma-phantomjs-launcher": "^1.0.1", changed karma.conf.js to have browsers: ['PhantomJS'], and ran au test --watch. I received this error

PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  SyntaxError: Expected an identifier but found 'originalDefine' instead
  at /home/xenoterracide/IdeaProjects/rpf-ui/test/aurelia-karma.js:49

Expected/desired behavior:

after installing the launcher and configuring the browser PhantomJS should work

  • What is the motivation / use case for changing the behavior?

using PhantomJs for headless tests in a docker container on CI.

The skeleton for webpack/typscript works with phantomjs

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
bootridercommented, Sep 14, 2016

Modify aurelia-karma.js at line 49 from: let originalDefine = global.define; to: var originalDefine = global.define;

2reactions
AStokercommented, Sep 15, 2016

@bootrider, are you saying that changing the let to a var solved the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

PhantomJS - Scriptable Headless Browser
PhantomJS is a headless web browser scriptable with JavaScript. ... Using QtWebKit as the back-end, it offers fast and native support for various...
Read more >
"Selenium support for PhantomJS has been deprecated ...
"Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead" #48.
Read more >
PhantomJS - Wikipedia
PhantomJS is a discontinued headless browser used for automating web page interaction. PhantomJS provides a JavaScript API enabling automated navigation, ...
Read more >
Supported technologies: PhantomJs - Wallaby.js
While we support the use of PhantomJs, PhantomJs has been deprecated in favor of headless chrome. We recommend changing your Wallaby configuration to...
Read more >
PhantomJS - Overview - Tutorialspoint
PhantomJS does not support Flash or Video, as it requires plugins and it is difficult to support the same on the command line....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found