Selenium / Quiz

Selenium in Node: Builder, By, and the First Session

The selenium-webdriver npm package: spinning up a driver with Builder, wiring Chrome options, and shutting it all down without leaking browsers.

Difficulty
Easy
Format
Quiz
Points
100
Estimate
8 min

// MISSION BRIEF

Your Mission

Selenium's JavaScript bindings live in the selenium-webdriver npm package, and they have their own dialect: a fluent Builder, an until module instead of a wait class, and promises on every command.

This quiz covers the session lifecycle in Node: constructing the driver, browser options, locators, and cleanup. Get the skeleton right and everything else is detail.

Speed bonus active.

// FIRST CONTACT

Battle teaser

The official Selenium bindings for JavaScript install as:

  1. Anpm install @selenium/node-bindings
  2. Bnpm install selenium-webdriver
  3. Cnpm install webdriverjs-official
  4. Dnpm install selenium
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

seleniumjavascriptwebdriversetupe2e-testing