Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for running phantomas in SlimerJS #313

Closed
macbre opened this issue May 15, 2014 · 11 comments
Closed

Support for running phantomas in SlimerJS #313

macbre opened this issue May 15, 2014 · 11 comments

Comments

@macbre
Copy link
Owner

macbre commented May 15, 2014

PhantomJS 2.0 release is past due by about 1 month and there are quite a lot of bugs still open.

Consider porting phantomas to SlimerJS:

  • it has the latest JavaScript engine
  • supports all HTML5 standards (including Audio, Video and WebGL)
  • support for Flash
  • they claim to have API 98% compatible with PhantomJS
  • onResourceReceived passes the body of the response (yay!)

Disadvantages:

  • SlimerJS is not headless, but xvfb can be used on *nix boxes where xorg is not installed

@stefanjudis, @william-p, @cvan, @gomezd - let's discuss it :)

@macbre macbre added this to the Roadmap milestone May 15, 2014
@macbre macbre self-assigned this May 15, 2014
@macbre
Copy link
Owner Author

macbre commented May 15, 2014

NPM package

@gomezd
Copy link
Contributor

gomezd commented May 15, 2014

Could it be possible to abstract phantomas core so it runs on both? That opens more possibilities for testing in webkit and gecko browsers, similar to what casperjs is doing.

@william-p
Copy link
Contributor

👍

@macbre
Copy link
Owner Author

macbre commented May 15, 2014

@gomezd, as far as skimmed through SlimerJS documentation, that's possible and definitely worth it.

Will command line options like the following be enough?

--engine [gecko|webkit]

alternatively:

--gecko
--webkit

@stefanjudis
Copy link
Contributor

Including both sounds great! 👍

@macbre macbre changed the title Consider porting phantomas to SlimerJS Consider adding support for running phantomas in SlimerJS May 15, 2014
@macbre
Copy link
Owner Author

macbre commented May 15, 2014

Guys, thanks for your feedback. Issue title updated accordingly :)

@cvan
Copy link
Contributor

cvan commented May 19, 2014

For an old side project of mine, I've gotten SlimerJS working with xvfb on my local machine and a VPS. However, I did have issues using it on Stackato (ActiveState's PAAS like herkou) where the requested frame buffer memory size caused SlimerJS to crash on graphic-intensive web sites.

https://github.com/cvan/firesnaggle/blob/master/install-packages.sh
https://github.com/cvan/firesnaggle/blob/master/test-packages.sh

I think we should totally do this, but we should do thorough testing on pages of varying sizes.

@macbre
Copy link
Owner Author

macbre commented May 20, 2014

@cvan, thanks for the feedback! It will definitely require lots of testing.

@macbre
Copy link
Owner Author

macbre commented May 25, 2014

SlimerJS playground

@macbre macbre modified the milestones: v1.4, Roadmap May 25, 2014
@macbre macbre changed the title Consider adding support for running phantomas in SlimerJS Support for running phantomas in SlimerJS May 25, 2014
@macbre
Copy link
Owner Author

macbre commented Jun 5, 2014

Blockers:

TODOs:

  • run via xvfb

@macbre
Copy link
Owner Author

macbre commented Jun 12, 2014

SlimerJS support (run via xvfb) added to phantomas as an experimental feature. Core functionality works correctly, expect some glitches in various modules :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants