liveBook · Manning

Page

As explained in Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

A Playwright page is an API object representing a browser page and exposing navigation and interaction operations.

A Playwright page is the test interface for controlling the browser page under test. Visit a route with page.goto, then perform navigation, element lookup, assertions, and interactions relative to that page. section 9.8.5

Use a page incrementally in an end-to-end test:

  • Call page.goto with a route, relative to the configured base URL. section 9.8.5
  • Use page.locator to retrieve elements from the DOM, then assert counts, text, and attributes. section 9.8.5

Testing a video list

A test receives page, visits the root route, locates #video-list>div, verifies two videos, and checks the first video's text and href.

How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it

How deep it goes
Explains navigation, DOM lookup, assertions, and interactions, but does not descend into browser internals.
Examples
Uses a seeded two-video fixture, the root route, video-list locators, text and link assertions, clicks, and typing.
What it assumes
Assumes a configured base URL and running application, while demonstrating page control through a complete test.
What you can do after
Apply it via Playwright to navigate, locate elements, assert rendered content, and interact with a web page.
How it connects
Ties browser navigation to base URLs, DOM locators, fixtures, assertions, and end-to-end testing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.