Rapid PhantomJS

Build up a solid base for advanced scripting by learning how to write scripts with PhantomJS

What's Inside

PhantomJS enables developers to load, browse, and analyse web pages automatically by writing simple scripts. It's useful for testing web pages that work as expected, monitoring performance, extracting relevant content, simulating user behaviour, and producing automatic web page screen shots. PhantomJS saves developers from needing to visit large numbers of web pages just to check how they work.

Rapid PhantomJS will help you to write your own PhantomJS scripts easily in order to perform various testing tasks.

You will begin with a detailed description of the main functionality to build up the base of advanced PhantomJS scripting. You will then move on to learn about the scripting for the four main use cases of PhantomJS, which covers rendering images from any website to avoid visual regression, monitoring network traffic to notice performance degradation, simulating user behavior, and checking the results of your unit testing suite automatically. This is where you will master popular frontend build tools such as make, npm scripting, Grunt, and gulp. These will be set up to help you automate your new developed PhantomJS scripts in any environment.

By the end of the course, you will be able to automate and optimize your workflow with the help of PhantomJS, which leads to higher productivity and products of higher quality.

About the Author

Stefan Judis lives in Berlin and has been developing websites using popular frontend technologies like Grunt, Gulp, Require.js, and Backbone.js for five years. He fell heavily in love with open source, automation, and tooling. He is the maintainer of two Grunt plugins that are based on PhantomJS, which help avoiding visual regression and making it easier to gain frontend-related performance metrics (grunt-photobox and grunt-phantomas). You can look him up on Github and Twitter.

Get started now!



14 Lectures
1+ Hours of Video
Lifetime Access
24/7 Support
Instructor Rating
Packt Publishing

Packt’s mission is to help the world put software to work in new ways, through the delivery of effective learning and information services to IT professionals. Working towards that vision, it has published over 4,000 books and videos so far, providing IT professionals with the actionable knowledge they need to get the job done–whether that’s specific learning on an emerging technology or optimizing key skills in more established tools.

Popular Bundles