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.

Switch from PhantomJS to Chrome's headless mode

See original GitHub issue

PhantomJS 2.5 may never reach the stable state (GitHub milestone shows that it’s 27% complete). Chrome has obviously more stable development team 😉 and leads the improve the web initiative - webp and spdy/http2 to name just a few.

Let’s consider porting phantomas (and rename it to chromas? 😄 ) to use Chrome (and Firefox) run in a headless mode for performance auditing / monitoring.

Chrome vs PhantomJS vs SlimerJS

Resources

Libraries

Puppeteer troubleshooting

Initial work

Is being done in this gist - https://gist.github.com/macbre/fded35f86893bace033e3790079bee76

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:26 (23 by maintainers)

github_iconTop GitHub Comments

3reactions
macbrecommented, Oct 26, 2020

Guys,

It’s been a while since the last activity in this thread. I want to give phantomas a new kick and refactor it to be more modular and use Puppeteer (headless Chromium) instead of PhantomJS (rest in peace, you’ve served us well!).

Here’s my list of ideas, directions, notes:

  • Get rid of two rendering engines (SlimerJS and PhantomJS) and rely solely on headless Chromium (provided by Puppeteer package from Google)
  • phantomas v2.0 will be a npm module only - no command line tool, various reporters, etc. Just a basic options handling, core modules and events emitting. Results will be returned as an object via Promise.
  • In phantomas-v2 branch I will port modules one by one and make sure tests pass
  • Command line tool and various reporters will be moved to a new macbre/phantomas-cli repository
  • Provide macbre/phantomas docker container with CLI tool and reporters installed for an easy deployment

Some basic work has started here - https://gist.github.com/macbre/fded35f86893bace033e3790079bee76#file-script-js

@gmetais - your feedback on what will make your life with YellowLabTools easier are more than welcome here 😃

3reactions
OzzyCzechcommented, Jun 26, 2017

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Replacing PhantomJS with Headless Chrome in your ...
Headless Chrome is now the browser engine that the tests run against, instead of PhantomJS. This swap "just" replaces the browser with a...
Read more >
Replace PhantomJS with Headless Chromium for ...
PhantomJS is a “headless” internet browser, meaning it has no user ... Fortunately, I discovered that switching to Chrome was easy.
Read more >
Replacing PhantomJS with headless Chrome
We recently replaced PhantomJS with ChromeDriver for system tests in a project since PhantomJS is no longer maintained.
Read more >
Moving your Rails test suite from PhantomJS to Headless ...
Selenium with Chrome accepts quite a number of arguments, so I'll break down a few key ones: headless - this is an obvious...
Read more >
Replacing Poltergeist/PhantomJS with Headless Chrome
Replacing Poltergeist/PhantomJS with Headless Chrome ... The Chrome browser supports a headless mode as of version 59, which is a god-send when ...
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