r/javascript • • Apr 13 '17

PhantomJS maintainer stepping down after Google's headless Chromium announcement

https://groups.google.com/forum/#!topic/phantomjs/9aI5d-LDuNE
337 Upvotes

26 comments sorted by

81

u/LostInThisWorld54312 Apr 13 '17

Guy is seriously a legend in software automation testing. I wish him the best and looking forward to Chrome headless!

40

u/fgutz Apr 13 '17

That was quick. I was just commenting earlier today that the Chrome team had reached to PhantomJS because they wanted to work with them but looks like that's out the window now. I just hope Chrome supplies a similar API to PhantomJS

58

u/Zanktus Apr 13 '17

that's out the window

( ͡° ͜ʖ ͡°)

10

u/cyanydeez Apr 13 '17

its headless

2

u/Cr3X1eUZ Apr 14 '17

defenestrate / decapitate

4

u/pcmaster160 Apr 13 '17

For now there's always SlimerJs which is API compatible with PhantomJS but in my experience has way less bugs. Worth noting however it isn't 100% headless yet and requires xvfb to run headless. Still worth it in my opinion with all the segfaults I had to deal with using Phantom...

2

u/JeefyPants Apr 13 '17

And casperjs works with them both :)

1

u/[deleted] Apr 13 '17

+1 for Slimer, been using it in production for over a year.

17

u/FamousWee Apr 13 '17 edited Apr 13 '17

It looks like they are thinking about starting a new project instead that would use Chrome as a new runtime called Phantomium.

https://groups.google.com/forum/#!topic/phantomjs-dev/S-mEBwuSgKQ

Edit: Phantomium are now on Github

10

u/JeefyPants Apr 13 '17

What a fun and unnecessary name

18

u/enry_straker Apr 13 '17

Good luck to him. Another atlas stepping down after carrying the weight of the world (metaphorically) on his shoulders.

May the code be with you, dude.

13

u/kickass_turing Apr 13 '17 edited Apr 13 '17

Firefox will also have builtin headless mode and you can also use SlimmerJS

MOZ_HEADLESS=1 /path/to/firefox/nightly/firefox

It will probably land in v55

3

u/paypaypayme Apr 13 '17

I was working on a project a couple months ago using PhantomJS... we were concerned that it was unstable and maybe we should use something else. Guess I was right! No offense to the maintainer though, it's obviously an ambitious project.

4

u/monsto Apr 13 '17

Sorry for your downvotes.

7

u/paypaypayme Apr 13 '17

Whatever... I wasn't trying to bash the software. I was just saying that using software maintained by one (or few) person(s) can have it's downsides

5

u/lukasbuenger Apr 13 '17

While this may hold for most projects maintained by few people, Vitaly single-handedly offered a top notch solution to a variety of problems in a web dev's life that were simply neglected by major players for many, many years. The fact, that Google is putting heavy resources behind headless is proof of the fact, that his feature catalogue was spot on from the very beginning.

Downvotes because a) PhantomJS has been very stable for a couple of years now and used in production on many large company's stack and b) because being right only after a major player steps up after all is not something I would brag about in a comment to a link that sees the maintainer abandoning his OS solution because he literally gets outnumbered. I get you, but it's not a classy move.

2

u/paypaypayme Apr 14 '17

Yea I could have worded my comment better. Sorry if I came off dickish :D

1

u/[deleted] Apr 14 '17

phantomjs is the only headless browser environment i could get to work with karma for my company's tests. I'm eternally grateful that someone had my back in those moments.

4

u/monsto Apr 13 '17

Personally, I got that. But judging by the downvotes, clearly some people believe your opinion is wrong. (yes it's absurd)

4

u/JoeAAStevens Apr 13 '17

Reddit can be such a fickle mistress

2

u/hackel Apr 13 '17

I switched to using Chromium with a headless xvfb a while back. It continues to work splendidly. It will be nice to have it native, though.

-6

u/ninjaroach Apr 13 '17

Headless web browser sounds like a kind of cool alternative to Node.

Having a native DOM and all the other goodies that come along with the web browser would be a big boost to my productivity.

3

u/elbarto2811 Apr 14 '17 edited Apr 14 '17

They're entirely different things. Node is a way to build your back-end in Javascript, PhantomJS is a way to render web pages (so the front-end) to images or pdf's without the need for a 'real' browser.

1

u/ninjaroach Apr 14 '17

I get it. It sounds similar to https://wkhtmltopdf.org/ but also seems to be useful for doing automated tests in the browser.

I still think it would be nice to write server-side code that had all of the Web API goodies that come with the browser. The "drop in equivalents" from NPM (see: node-dom) are nowhere near the same quality, functionality or compliance to spec.