Cover image for UI TESTING WITH PUPPETEER [electronic resource] : implement end-to-end testing and browser automation using javascript... and node.js.
UI TESTING WITH PUPPETEER [electronic resource] : implement end-to-end testing and browser automation using javascript... and node.js.
ISBN:
9781800203761
Title:
UI TESTING WITH PUPPETEER [electronic resource] : implement end-to-end testing and browser automation using javascript... and node.js.
Author:
KONDRATIUK, DARIO.
Personal Author:
Publication Information:
[S.l.] : PACKT PUBLISHING LIMITED, 2021.
Physical Description:
1 online resource
Contents:
Cover -- Title page -- Copyright and Credits -- Dedicated -- Contributors -- Table of Contents -- Preface -- Chapter 1: Getting started with Puppeteer -- What is browser automation? -- Selenium and Puppeteer -- Introducing Headless browsers -- Available headless browsers -- The Chromium DevTools Protocol -- Introducing Puppeteer -- The Puppeteer object model -- Puppeteer use cases -- Task Automation -- Web Scraping -- Content generation -- End-to-end testing -- Setting up the environment -- Node.js -- Visual Studio Code -- Our first Puppeteer code -- Installing Puppeteer

Hello world in Puppeteer -- Asynchronous programming in JavaScript -- Promise.all -- Promise.race -- Fulfilling our own promises -- Summary -- Chapter 2: Automated Testing and Test runners -- Technical requirements -- Introduction to Automated Testing -- Unit tests -- Service tests -- End-to-end tests -- Test runner features -- Available test runners -- Creating our first test project -- Organizing our code -- Introducing the Page Object Model -- Summary -- Chapter 3: Navigating through a website -- Technical requirements -- Introducing the tests sites for this chapter

Creating a Puppeteer browser -- Using the Puppeteer.launch function -- Headless -- The user data directory -- Executable Path -- Default Viewport -- Product -- Browser Arguments -- Mobile options -- Options in practice -- Navigating through a site -- Timeouts -- waitUntil -- Referrer -- Using the response object -- Getting the response URL -- Getting the response status code -- Introduction to continuous integration -- Summary -- Chapter 4: Interacting with a page -- Technical requirements -- Introduction to HTML, the DOM, and CSS -- HTML -- The DOM -- CSS Selectors -- Finding elements

Finding elements using XPath -- Interacting with Elements -- Typing on input elements -- Clicking on elements -- Selecting options in drop-down lists -- Keyboard and Mouse emulation -- Debugging tests with Visual Studio Code -- Summary -- Chapter 5: Waiting for elements and network calls -- Technical requirements -- Waiting for the page to load -- Waiting for elements -- Await a wait function -- Waiting for network calls -- Arrange, Act, Await -- Fire and forget -- Promise.all -- Waiting for page events -- The close event -- The popup event -- Target created event -- The console event

The dialog event -- The headless recorder -- Summary -- Chapter 6: Executing and Injecting JavaScript -- Technical requirements -- Executing JavaScript code -- Variable scopes in JavaScript -- Manipulating handles with JavaScript code -- Getting information from the elements -- Acting on elements -- Enforcing server rules -- Finding elements using JavaScript -- Waiting for functions -- Exposing local functions -- Running our checks with Checkly -- Summary -- Chapter 7: Generating Content with Puppeteer -- Technical requirements -- Taking screenshots -- Using screenshots for regression tests
Local Note:
eBooks on EBSCOhost
Format:
Electronic Resources
Publication Date:
2021
Publication Information:
[S.l.] : PACKT PUBLISHING LIMITED, 2021.