Rapid PhantomJS

Build up a solid base for advanced scripting by learning how to write scripts with PhantomJS
3.5 (4 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
70 students enrolled
$50
Take This Course
  • Lectures 14
  • Contents Video: 1.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 12/2014 English

Course Description

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, RequireJS, and BackboneJS 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).

What are the requirements?

  • The course starts off with some basic scripting in PhantomJS and then moves on to advanced scripting by writing several example scripts from scratch.

What am I going to get from this course?

  • 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

What is the target audience?

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

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: PhantomJS - Introduction
05:38

Explanation of what a browser is and how it works in general. Go to the topic of browser rendering engines and understand what PhantomJS is and which relation exists with WebKit.

06:58

It's a headless browser. Demonstration of why this can be useful in many cases by presenting multiple examples.

05:57

Explaining two different installation processes for PhantomJS.

04:12

Describe and use PhantomJS's phantom API.

04:32

Describe and use PhantomJS's system API.

05:20

Describing and using PhantomJS's webpage API.

Section 2: Frontend Unit Testing with PhantomJS
05:46

Go to the principle of page rendering with PhantomJS by showing and using the webpage object in detail.

06:43

Go to the principle of executing JavaScript in the context of a website opened by PhantomJS. This will be used to read out data.

05:45

Open a webpage, analyze the markup, and read/print it with PhantomJS.

04:21

React to all the loaded assets and figure out how to filter images in order to display them in the command line.

06:26

Go into the basic principles of frontend unit testing frameworks and explain implementation with PhantomJS (it's a bit too complex to implement it ourselves).

Section 3: Automating Your Workflow with Included Tests Based on PhantomJS
05:31

Make clear which values these tools have and show how easy the usage is.

03:44

Make clear how to implement make and npm scripting.

06:26

Make clear how to implement grunt and gulp and demonstrate the fairly simple setup.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Packt Publishing, Tech Knowledge in Motion

Over the past ten years Packt Publishing has developed an extensive catalogue of over 2000 books, e-books and video courses aimed at keeping IT professionals ahead of the technology curve. From new takes on established technologies through to the latest guides on emerging platforms, topics and trends – Packt's focus has always been on giving our customers the working knowledge they need to get the job done. Our Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.

Ready to start learning?
Take This Course