Need advice about which tool to choose?Ask the StackShare community!
Ghost Inspector vs PhantomJS: What are the differences?
Developers describe Ghost Inspector as "Automated website testing. Record yourself browsing once. Replay it continuously from the cloud". Ghost Inspector lets you create and manage UI tests that check specific functionality in your website or application. We execute these automated browser tests continuously from the cloud and alert you if anything breaks. On the other hand, PhantomJS is detailed as "Scriptable Headless WebKit". PhantomJS (www.phantomjs.org) is a headless WebKit scriptable with JavaScript. It is used by hundreds of developers and dozens of organizations for web-related development workflow.
Ghost Inspector can be classified as a tool in the "In-Browser Testing" category, while PhantomJS is grouped under "Headless Browsers".
Some of the features offered by Ghost Inspector are:
- Automated browser testing from the cloud
- Chrome extension for test recording
- GUI editor for test building and editing
On the other hand, PhantomJS provides the following key features:
- Multiplatform, available on major operating systems: Windows, Mac OS X, Linux, and other Unices.
- Fast and native implementation of web standards: DOM, CSS, JavaScript, Canvas, and SVG. No emulation!
- Pure headless (no X11) on Linux, ideal for continuous integration systems. Also runs on Amazon EC2, Heroku, and Iron.io.
"Simple test editor" is the primary reason why developers consider Ghost Inspector over the competitors, whereas "Scriptable web browser" was stated as the key factor in picking PhantomJS.
PhantomJS is an open source tool with 26.9K GitHub stars and 5.7K GitHub forks. Here's a link to PhantomJS's open source repository on GitHub.
I am using Node 12 for server scripting and have a function to generate PDF and send it to a browser. Currently, we are using PhantomJS to generate a PDF. Some web post shows that we can achieve PDF generation using Puppeteer. I was a bit confused. Should we move to puppeteerJS? Which one is better with NodeJS for generating PDF?
You better go with puppeteer. It is basically chrome automation tool, written in nodejs. So what you get is PDF, generated by chrome itself. I guess there is hardly better PDF generation tool for the web. Phantomjs is already more or less outdated as technology. It uses some old webkit port that's quite behind in terms of standards and features. It can be replaced with puppeteer for every single task.
I suggest puppeteer to go for. It is simple and easy to set up. Only limitaiton is it can be used only for chrome browser and currently they are looking into expanding into FF. The next thing is Playwright which is just a scale up of Puppeteer. It supports cross browsers.
Pros of Ghost Inspector
- No code required3
- Runscope integration3
- Simple test editor3
- Screenshot comparison2
- Videos of every test run2
- Primarily focus on functional testing1
- Easy to use API enables remote control1
- Data-Driven testing1
- Minimal effort to migrate to another tool like Selenium1
- Partials and Variables enable fast test creation1
- 30-40 in-parallel tests for cheap1
- Detailed Documentation1
- Supports end to end testing with Runscope1
- Extensive Integrations available1
- Scheduling tests0
- Licensed but cheaper compared to other tools0
- Email notification and Alerts0
Pros of PhantomJS
- Scriptable web browser13
- Depends on QT3
- No ECMAScript 62
Sign up to add or upvote prosMake informed product decisions
Cons of Ghost Inspector
- Load & Performance testing0
- Flash Support inside browser0
- Support Cross-device testing (device, web)0