Automating the Web Using PhantomJS and CasperJS

Learn to use PhantomJS and CasperJS to automate your interaction with the web to perform numerous tasks such as data scraping, network monitoring, page rendering, and browser testing in a programmatic manner.
Course info
Rating
(50)
Level
Intermediate
Updated
May 10, 2016
Duration
58m
Table of contents
Description
Course info
Rating
(50)
Level
Intermediate
Updated
May 10, 2016
Duration
58m
Description

When done manually, data scraping, monitoring, and testing are labor-intensive and time-consuming. This course, Automating the Web Using PhantomJS and CasperJS, teaches web developers various ways that PhantomJS (a "headless" scriptable web browser) and CasperJS (a utility wrapper around PhantomJS) can be utilized to automate these kinds of interactions with websites. First, you'll learn how to programmatically scrape target information from a webpage by creating a navigation script, allowing you to automatically gather the links that would be tested using your toolset. Next, you will implement a script to visit all the links that are gathered and capture screenshots from them, afterwards building a script that would monitor a page's network activity to check the state of the resources for catching potential failures. Finally, you will implement a testing suite to check the markup of a given web page against a few accessibility requirements. By the end of this course, you'll understand how to use PhantomJS and CasperJS to automate these tasks in order to save yourself time and effort.

About the author
About the author

Engin Arslan is a front end developer with a Bachelor of Science in Materials Engineering and a Postgraduate Degree in Visual Effects. Before becoming a front end developer, he worked as a visual effects artist / technical director on films and TV shows including Resident Evil, Tron, Mama, Pompeii, Vikings, and Strain. He received an Emmy nomination and won a Canadian Screen Award for his Visual Effects work on the TV show Vikings. During his time in VFX, he fell in love with Python and with programming in general. As a result he changed careers to be able to immerse himself completely in software development. Engin currently works at Myplanet, a Toronto-based digital services company, where he helps develop solutions for clients ranging from Fortune 500 companies to top technology brands. He also works at Seneca College as a part-time professor.

Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello everyone. My name is Engin Arslan, and welcome to my course, automating the web using PhantomJS and Casper JS. I'm a front-end developer based in Toronto, Canada. Using a headless browser, such as Phantom JS, allows for lots of different opportunities in interacting with the web. Users can query and script data. Monitor network activity, capture screenshots, and perform functional testing of web pages and web applications in a programmatic manner. This course will teach you about PhantomJS and CasperJS, reaches and navigation scripting, and testing utility for PhantomJS. We will be focusing mostly on CasperJS, as it makes using PhantomJS much easier, and less error-prone. You will learn about kind of tools that can be created with this technology, and walk through example projects, to demonstrate real life use cases. By the end of this course, you will know how to utilize a headless browser in your own web developers workflow. Before beginning the course, you need to be comfortable with JavaScript, so it is recommended to visit the introductory JavaScript titles in the Pluralsight library if you need a refresher. Familiar to it's npm, Node Package Manager, is also recommended but not mandatory. Thank you, and enjoy the course.