Book Image

PhantomJS Cookbook

By : Rob Friesel
Book Image

PhantomJS Cookbook

By: Rob Friesel

Overview of this book

Table of Contents (15 chapters)
PhantomJS Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Functional and End-to-end Testing with PhantomJS

In this chapter, we will cover:

  • Running Selenium tests with PhantomJS and GhostDriver

  • Using WebdriverJS as a Selenium client for PhantomJS

  • Adding Poltergeist to a Capybara suite

  • Taking screenshots during tests with Poltergeist

  • Simulating precise mouse clicks with Poltergeist

  • Installing CasperJS

  • Interacting with web pages using CasperJS

  • End-to-end testing with CasperJS

  • Exporting test results from CasperJS in the XUnit format

  • Detecting visual regressions using PhantomCSS