Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
UI Testing with Puppeteer
UI Testing with Puppeteer

UI Testing with Puppeteer: Implement end-to-end testing and browser automation using JavaScript and Node.js

eBook
$26.99
Paperback
$38.99
Subscription
Free Trial
Renews at $12.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Key benefits

  • Get up and running with Puppeteer and discover best practices for automation testing
  • Automate your modern web applications using Jest and Mocha with Puppeteer
  • Generate screenshots using Puppeteer and find out how they can be used for UI regression tests

Description

Puppeteer is an open source web automation library created by Google to perform tasks such as end-to-end testing, performance monitoring, and task automation with ease. Using real-world use cases, this book will take you on a pragmatic journey, helping you to learn Puppeteer and implement best practices to take your automation code to the next level! Starting with an introduction to headless browsers, this book will take you through the foundations of browser automation, showing you how far you can get using Puppeteer to automate Google Chrome and Mozilla Firefox. You’ll then learn the basics of end-to-end testing and understand how to create reliable tests. You’ll also get to grips with finding elements using CSS selectors and XPath expressions. As you progress through the chapters, the focus shifts to more advanced browser automation topics such as executing JavaScript code inside the browser. You’ll learn various use cases of Puppeteer, such as mobile devices or network speed testing, gauging your site’s performance, and using Puppeteer as a web scraping tool. By the end of this UI testing book, you’ll have learned how to make the most of Puppeteer’s API and be able to apply it in your real-world projects.

Who is this book for?

The book is for QA engineers, testing professionals, and frontend web developers alike who want to perform end-to-end testing using Google's developer tools. Web developers who want to learn how to use Puppeteer for generating content, scraping websites, and evaluating website performance will also find this book useful. Although knowledge of Node.js isn’t necessary, basic JavaScript knowledge will assist with understanding the concepts covered.

What you will learn

  • Understand browser automation fundamentals
  • Explore end-to-end testing with Puppeteer and its best practices
  • Apply CSS Selectors and XPath expressions to web automation
  • Discover how you can leverage the power of web automation as a developer
  • Emulate different use cases of Puppeteer such as network speed tests and geolocation
  • Get to grips with techniques and best practices for web scraping and web content generation

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 11, 2021
Length: 316 pages
Edition : 1st
Language : English
ISBN-13 : 9781800203761
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 11, 2021
Length: 316 pages
Edition : 1st
Language : English
ISBN-13 : 9781800203761
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$12.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$129.99 billed annually
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$179.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 136.97
End-to-End Web Testing with Cypress
$48.99
UI Testing with Puppeteer
$38.99
Crafting Test-Driven Software with Python
$48.99
Total $ 136.97 Stars icon
Visually different images

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(13 Ratings)
5 star 84.6%
4 star 15.4%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Daniel Correa Apr 01, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
- The role of tester has evolved a lot. Some years ago this role was delegated only to a QA team, but now, I think this is something that every software developer should know. Dario (the author of this book), makes an excellent job highlighting why testing is not only for the QA team.- The UI Testing with Puppeteer book is one of those books that I recommend to every software developer to read. Especially because it goes far beyond of common testing books.- Something to highlight is that the author does not go directly to the main topics, first, the author makes an excellent job introducing or presenting fundamental elements such as: foundations of the web (HTML, CSS, and Javascript), or foundations of the testing (what is a test, what are the types of tests, which people should be involved in each type of test, how tests are evolved, and how to write good tests). All those elements are perfectly explained and summarized. If you read the book, you will understand why it is very critical to understand fundamental concepts of HTML, CSS, and Javascript before going to UI testing.- During the entire book you will find a lot of tools and elements which enrich your toolbox. Tools such as Github actions, Checkly, Puppeteer recorded, Visual Studio Code, and Chrome DevTools. Just a quick example, I have used Chrome DevTools during the last 8 years, but I didn’t know some excellent commands and options that this tool provides. I was like wow, I can’t believe how I didn’t know these elements in the past.- Interesting elements about UI testing include: website navigation, interacting with the website elements, testing network calls, screenshots, UI regression test with screenshots, manipulating javascript, environment simulations (such as mobile or tablets), and the last chapters include content generation with pdf, web scraping, and performance evaluation. Even the book takes you to emulate vision issues related with accessibility (such as achromatopsia, and blurred-vision).- This book is totally recommended, and therefore, you will find some funny jokes.
Amazon Verified review Amazon
zoha Sep 14, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is one of the best books available to learn Front-end testing with Puppeteer. It is detailed as well as easy to understand. Even beginners can get a lot from this book, complex concepts are broken down and explained well.
Amazon Verified review Amazon
Amazon Customer May 30, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book goes from the idea of why you need to test and why it's important to, into the deeps of browser automation and the endless possibilities that it offers. Having no previous background in the area, I learned enough to be able to incorporate the concepts into my day-to-day tasks.The book is very easy to read and follow, but is also really focused, and explains in detail how to succeed in complex automation tasks.And also along the way, you will end up with a nice set of tools that will help your day-to-day and make you a better overall professional.You won't regret reading it.
Amazon Verified review Amazon
Mukta May 12, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As we know puppeteer is an open source library which can be used to automate end to end scenarios. This books helps in under the basics first and gradually covers the chapters in more details. It also takes about css selectors and xpath as well. To Implement puppeteer in your real time project,I find this book easy to follow. My approach was take it slow,step by step,chapter by chapter and soon you will gain confidence while doing UI testing with Puppeteer.
Amazon Verified review Amazon
Julia Mar 17, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Invaluable resource; this book walks you trough the path of web browser automation for UI Testing, web scraping and content generation. From the basics to advances scenarios and full of real world examples that you can easily apply to your projects.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.