• Complain

Aries Beltran - Getting Started with PhantomJS

Here you can read online Aries Beltran - Getting Started with PhantomJS full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Aries Beltran Getting Started with PhantomJS
  • Book:
    Getting Started with PhantomJS
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2013
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Getting Started with PhantomJS: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Getting Started with PhantomJS" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Harness the strength and capabilities of PhantomJS to interact with the web and perform website testing with a headless browser based on WebKit

Overview

  • Writing scripts that can interact directly with web services and pages
  • Interacting with social media websites using PhantomJS scripts
  • Creating web-based test scripts and running them in a headless browser

In Detail

PhantomJS is a headless WebKit browser with JavaScript API that allows you to create new ways to automate web testing. PhantomJS is currently being used by a large number of users to help them integrate headless web testing into their development processes. It also gives you developers a new framework to create web-based applications, from simple web manipulation to performance measurement and monitoring.

A step step-by by-step guide that will help you develop new tools for solving web and testing problems in an effective and quick way. The book will teach you how to use and maximize PhantomJS to develop new tools for web scrapping, web performance measurement and monitoring, and headless web testing. This book will help you understand PhantomJS scripting API capabilities and strengths.

This book starts by looking at PhantomJS JavaScript API, features, and basic execution of scripts. Throughout the book, you will learn details to help you write scripts to manipulate web documents and fully create a web scrapping tool.

Through its practical approach, this book strives to teach you by example, where each chapter focuses on the common and practical usage of PhantomJS, and how to extract meaningful information from the web and other services.

By the end of the book, you will have acquired the skills to enable you to use PhantomJS for web testing, as well as learning the basics of Jasmine, and how it can be used with PhantomJS.

What you will learn from this book

  • Explore the possibilities of PhantomJS development and make use of a headless browser
  • Understand PhantomJS core features and API
  • Manipulate the DOM properties of web pages using scripts
  • Interact with web pages using PhantomJS scripts
  • Learn how to emulate keyboards and mouse actions
  • Work with geolocation services with PhantomJS
  • Build scripts that will create web sites snapshots
  • Create and implement PhantomJS custom modules
  • Use PhantomJS to perform headless testing with Jasmine

Approach

A standard tutorial approach, as a complete guide detailing the major aspects of PhantomJS with particular focus on website testing.

Who this book is written for

If you are a JavaScript developers who is interested in developing applications that interact with various web services, using a headless browser, then this book is ideal for you. This book will also be good for you if you are planning to create a headless browser testing for your web application. Basic understanding of JavaScript is assumed.

Aries Beltran: author's other books


Who wrote Getting Started with PhantomJS? Find out the surname, the name of the author of the book and a list of all author's works by series.

Getting Started with PhantomJS — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Getting Started with PhantomJS" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Getting Started with PhantomJS

Getting Started with PhantomJS

Copyright 2013 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: November 2013

Production Reference: 1191113

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78216-422-7

www.packtpub.com

Cover Image by Abhishek Pandey (<>)

Credits

Author

Aries Beltran

Reviewers

Phil Sales

Stphane Wirtel

Acquisition Editors

Owen Roberts

Martin Bell

Commissioning Editor

Sruthi Kutty

Technical Editors

Menza Mathew

Amit Shetty

Copy Editors

Sarang Chari

Tanvi Gaitonde

Insiya Morbiwala

Alfida Paiva

Lavina Pereira

Project Coordinator

Joel Goveya

Proofreader

Lauren Harkins

Indexer

Tejal Soni

Production Coordinator

Nitesh Thakur

Cover Work

Nitesh Thakur

About the Author

Aries Beltran is a software developer located in Manila, Philippines. He works as an architect and R&D developer for financial businesses using web and enterprise technologies. He is currently developing new tools to provide real-time insights. He is interested in playing around with cutting-edge HTML5 development and mobile visualization. When he isn't coding, he likes to take photos of his daughter, Tara, who is his favorite model.

I would like to thank my family, Cecille and Tara, for inspiring me always and giving me courage to aim higher. I would also like to thank Phil Sales for helping me in every aspect of this book. Lastly, I would like to thank all of the people that I work with at Packt Publishing, who are very supportive and understanding.

About the Reviewers

Phil Sales is a software development manager and has worked in this role for more than 10 years. He started and managed development and testing teams for various companies, mostly in the banking sector. Most of his projects have been web application oriented, with a Java/J2EE flavor. His latest endeavor involved starting up a Manila office for a UK-based software vendor, with development, testing, and support teams. Based in Manila, he has also worked on projects in the US, the UK, and Thailand.

Stphane Wirtel has been one of the main developers of the OpenERP project for the past six years. He is also a consultant for the high availability of OpenERP and for the SaaS architecture of OpenERP. He has been an enthusiastic developer and user of Linux for the past 15 years and has been working on Python for 10 years. He likes to discover new technologies (LLVM, Erlang, Golang, and so on).

He is also a member of the Python Software Foundation and a former member of the Association for Computing Machinery and the GNOME Foundation.

I would like to thank my wife, Anne and my daughter, Margaux.

www.PacktPub.com
Support files, eBooks, discount offers and more

You might want to visit www.PacktPub.com for support files and downloads related to your book.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

httpPacktLibPacktPubcom Do you need instant solutions to your IT - photo 1

http://PacktLib.PacktPub.com

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.

Why Subscribe?
  • Fully searchable across every book published by Packt
  • Copy and paste, print and bookmark content
  • On demand and accessible via web browser
Free Access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.

Preface

PhantomJS is a fully scriptable headless browser. When I started using it two years ago, I thought it was just another environment that can perform and evaluate JavaScript, but, as I explored its features, to my surprise, I found it to be an awesome technology. Most of the features that are discussed in this book come from the bits and pieces of the application that I have been using in my work to create a web monitoring and user-simulation type of service. PhantomJS is one of those technologies that can be integrated into any existing platform and can solve web development puzzles, ranging from page manipulation to user event simulation.

This book is a guide to help you not only ease your way into developing scripts in PhantomJS but it will also show you the cool features of this technology. In addition, it will also encourage you to be more creative and play with it as each chapter unfolds new capabilities. This book will help you get started.

What this book covers

, Getting Started , starts by introducing what PhantomJS is, how to get and install it, and then goes directly into creating your very first script.

, Manipulating Page Content , shows you how to directly interact with pages that we open in our headless browser.

, Handling Events and Callbacks , explores how to capture events that web pages generate for the browser and reacts accordingly. We will also simulate browser events that involve simulating the users' mouse and keyboard events.

, Capturing Errors , focuses on how to handle errors within PhantomJS and those that are generated by the pages.

, Grabbing Pages , plays with one cool feature of PhantomJS, that is, capturing screenshots programmatically.

, Accessing Location-based Services , focuses on using existing web-based and location-based services. Using PhantomJS as our headless browser, we will be capturing location data and creating examples that are useful.

, Working with Files , shows you how to work with files and understand how these are supported by PhantomJS using its own FileSystem API.

, Cookies , discusses how cookies are supported by PhantomJS. We will learn to create cookies and interact with the pages that need them.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Getting Started with PhantomJS»

Look at similar books to Getting Started with PhantomJS. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Getting Started with PhantomJS»

Discussion, reviews of the book Getting Started with PhantomJS and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.