// setup.js const { start, install } = require('selenium-standalone'); let server;
# Install drivers (runs fresh on every commit) - run: npx selenium-standalone install # Run server in background - run: npx selenium-standalone start & - run: npm test
Enter —the npm package that turns that headache into a single line of code. What is selenium-standalone ? Despite the name, this isn't the old Java Selenium Server. The selenium-standalone npm package is a lightweight CLI tool and library that automatically installs and manages Selenium WebDriver binaries for Chrome, Firefox, Edge, and Internet Explorer.
await browser.url('https://example.com'); const title = await browser.getTitle(); console.log( Page title is: ${title} ); await browser.deleteSession(); })();
Taming the Browser: Why selenium-standalone is a Game Changer for Web Automation Published: April 14, 2026 Reading Time: 4 minutes
No more "forgetting to start the Selenium server" errors on Monday morning. This is where selenium-standalone shines. Your pipeline becomes deterministic.

