The Wayback Machine - https://web.archive.org/web/20160805190423/https://www.packtpub.com/web-development/rapid-phantomjs-video

Rapid PhantomJS [Video]

Rapid PhantomJS [Video]

Starting
Stefan Judis

Build up a solid base for advanced scripting by learning how to write scripts with PhantomJS
$10.00
RRP $49.99
$29.99 p/month

Find out more

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3500+ books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Video Details

ISBN 139781783989782
Course Length77 minutes

Video Description

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.

Style and Approach

Rapid PhantomJS is for web developers who have some existing knowledge of JavaScript and are not afraid of using the command line.

Table of Contents

PhantomJS - Introduction
What Is PhantomJS?
Why Is PhantomJS Useful?
How to Install and Use PhantomJS?
A Quick Demonstration of the 'phantom' API
A Quick Demonstration of the 'system' API
A Quick Demonstration of the 'webpage' API
Frontend Unit Testing with PhantomJS
Using PhantomJS in Terms of Rendering
Using PhantomJS in Terms of Page Automation (Reading)
Using PhantomJS in Terms of Page Automation (Writing)
Using PhantomJS in Terms of Network Monitoring
Using PhantomJS in Terms of Testing
Automating Your Workflow with Included Tests Based on PhantomJS
A Quick Overview of Automation Tools
Setting Up Automation Using make and npm
Setting Up Automation Using grunt and gulp

What You Will Learn

  • Learn to write advanced PhantomJS scripts
  • Make use of the phantom object to deal with general PhantomJS functionality
  • Implement a system object to read out system arguments and make your scripts more generic and reusable
  • Monitor the network activity of any website using the webpage object
  • Automate visitor behavior on any website using the evaluate function
  • Execute a frontend unit test suite like Jasmine and retrieve the results
  • Adapt popular frontend build tools to automate your newly gained knowledge of PhantomJS easily

Authors

Screenshots

Table of Contents

PhantomJS - Introduction
What Is PhantomJS?
Why Is PhantomJS Useful?
How to Install and Use PhantomJS?
A Quick Demonstration of the 'phantom' API
A Quick Demonstration of the 'system' API
A Quick Demonstration of the 'webpage' API
Frontend Unit Testing with PhantomJS
Using PhantomJS in Terms of Rendering
Using PhantomJS in Terms of Page Automation (Reading)
Using PhantomJS in Terms of Page Automation (Writing)
Using PhantomJS in Terms of Network Monitoring
Using PhantomJS in Terms of Testing
Automating Your Workflow with Included Tests Based on PhantomJS
A Quick Overview of Automation Tools
Setting Up Automation Using make and npm
Setting Up Automation Using grunt and gulp

Video Details

ISBN 139781783989782
Course Length77 minutes
Read More

Read More Reviews