UI Testing with Puppeteer
Implement end-to-end testing and browser automation using JavaScript and Node.js
Seiten
2021
Packt Publishing Limited (Verlag)
978-1-80020-678-6 (ISBN)
Packt Publishing Limited (Verlag)
978-1-80020-678-6 (ISBN)
Explore Google's open source web automation library Puppeteer to perform tasks such as end-to-end testing, performance monitoring, and task automation with ease. Using real-world use cases, this book will help you learn the capabilities and best practices of Puppeteer to take your automation code to the next level.
Write fail-safe automation tests, device emulation, and browser automation using Puppeteer’s Google-powered API
Key Features
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
Book DescriptionPuppeteer 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.
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
Who this book is forThe 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.
Write fail-safe automation tests, device emulation, and browser automation using Puppeteer’s Google-powered API
Key Features
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
Book DescriptionPuppeteer 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.
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
Who this book is forThe 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.
Dario Kondratiuk is a web developer since 2001. He won the Microsoft MVP (most valuable professional) award in 2020 for his contributions to the developer community. Dario has been working with Puppeteer since the beta versions, back in 2017. He is the author of Puppeteer-Sharp, a Puppeteer port to .NET, and Playwright-Sharp, a Playwright port to .NET.
Table of Contents
Getting started with Puppeteer
Automated Testing and Test runners
Navigating through a website
Interacting with a page
Waiting for elements and network calls
Executing and Injecting JavaScript
Generating Content with Puppeteer
Environments emulation
Scraping tools
Evaluating and Improving the Performance of a Website
Erscheinungsdatum | 16.03.2021 |
---|---|
Verlagsort | Birmingham |
Sprache | englisch |
Maße | 75 x 93 mm |
Themenwelt | Informatik ► Software Entwicklung ► Qualität / Testen |
Informatik ► Software Entwicklung ► SOA / Web Services | |
Mathematik / Informatik ► Informatik ► Web / Internet | |
ISBN-10 | 1-80020-678-X / 180020678X |
ISBN-13 | 978-1-80020-678-6 / 9781800206786 |
Zustand | Neuware |
Haben Sie eine Frage zum Produkt? |
Mehr entdecken
aus dem Bereich
aus dem Bereich
Aus- und Weiterbildung zum Certified Tester – Foundation Level nach …
Buch | Hardcover (2024)
dpunkt (Verlag)
39,90 €
Aus- und Weiterbildung zum ISTQB® Advanced Level Specialist – …
Buch | Hardcover (2021)
dpunkt (Verlag)
39,90 €
Qualität von und mit KI-basierten Systemen
Buch | Hardcover (2023)
dpunkt (Verlag)
34,90 €