liveBook · Manning

Selenium

As explained in Web Components in Action

Selenium is a browser automation framework for driving web browsers programmatically.

Selenium handles browser automation inside the Web Component Tester (WCT). It launches the browsers used for tests from the terminal, loads the HTML, JavaScript, and CSS test environment, and reports browser results back to the terminal. section 13.2

A browser-based component-testing setup separates responsibilities:

  • Selenium automates the target browsers and connects their execution to the terminal. section 13.2
  • WCT provides the surrounding test tooling for Web Components. section 13.2
  • Mocha organizes suites and tests, while Chai supplies assertions. section 13.2
Figure 13.1. The WCT running flow

Use the WCT running flow to follow how terminal commands, Selenium-managed browsers, test files, and reported results fit together. section 13.2

How Web Components in Action covers it

How deep it goes
Explains Selenium’s browser-automation role but defers its own API and implementation details.
Examples
Uses WCT slider tests that inspect properties, attributes, shadow-root styles, and boundary values.
What it assumes
Assumes familiarity with HTML, JavaScript, CSS, and tests while introducing browser automation’s role from the surrounding workflow.
What you can do after
Operate/configure WCT to launch browser-based component tests and inspect their terminal-reported results.
How it connects
Connects Selenium with Web Component Tester, browser automation, Mocha, Chai, and component testing.

Also explained in

Compare how 2 books explain Selenium →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Components in Action. The section links point to the parts of the book it draws on.