Learn to code from scratch with the latest and greatest tools and techniques.
Enroll NowFrom Photoshop to After Effects, learn professional creative tools from the experts.
Enroll NowSnag unlimited access to 1,000+ courses for life — now just $99 with this deal!
View DealPhantomJS 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.
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.
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.