🔗Headless Browser
Also known as Headless Chrome, Headless Firefox, Headless Mode (Browser)
A web browser with no window. A program drives it, not a person.
Think of it like
Think of it like a radio with no screen. It still plays the whole show, you just cannot see it.
Example
A test server runs 200 checks in headless Chrome each night. No screen is needed, so the tests run fast.
Why it matters
Servers have no screen. A headless browser lets tests and scrapers run there.
Definition
Example code
bash
chrome --headless --screenshot https://example.comCommon mistake
Key takeaways
- 1No window. Nothing is drawn on a screen.
- 2Full browser. It still runs the page's code.
- 3Made for servers. Tests and scrapers run there.