# Browser Automation

> A program that drives a web browser. It clicks and types like a person.

**Field:** Software Development  
**Category:** Integration & Automation  
**Also known as:** Automated Browser, Browser Bot, Browser Scripting

## Think of it like

Think of it like a puppet show. The script pulls the strings, and the browser clicks and types.

## Definition

Browser automation is a program that drives a web browser by itself. It opens pages, clicks buttons, fills in forms and reads what appears. Testers use it to check a website works. Others use it for jobs a site has no API for. Tools like Puppeteer and Playwright give your code the controls.

## Example

Emma's script logs in to a supplier site each Monday. It clicks to the orders page and downloads the latest invoice.

## Why it matters

Some work can only be done through a website. Automation does it without a person at the keyboard.

## Common mistake

Telling the script to wait a fixed time. Wait for the button to appear, or the run fails when the page is slow.

## Three principles

- **Click and type.** The script does what a person does.
- **Wait for the page.** Wait for elements, not for seconds.
- **Tests and chores.** Used for testing and for dull jobs.

## Related terms

- [Headless Browser](https://learn.benibix.com/term/development/headless-browser)
- [Puppeteer](https://learn.benibix.com/term/development/puppeteer)
- [Playwright](https://learn.benibix.com/term/development/playwright)
- [Web Scraping](https://learn.benibix.com/term/development/web-scraping)
- [End-to-End Test (E2E)](https://learn.benibix.com/term/development/end-to-end-test)
- [Robotic Process Automation (RPA)](https://learn.benibix.com/term/development/robotic-process-automation)
- [AI Browser](https://learn.benibix.com/term/ai/ai-browser)

## Told apart from

- [Web Scraping vs Browser Automation](https://learn.benibix.com/compare/web-scraping-vs-browser-automation): People think web scraping and browser automation are one job, and they are not. Scraping reads a page and saves the data it finds, like prices. Browser automation acts on a page. It clicks, types and sends forms. The same tools can do both, but only automation changes anything on the site.

![A script on the left drives a browser in the middle that has no window, labelled headless. The browser loads a web page on the right. Two outputs come back: web scraping pulls prices out of the page into a table, and browser automation clicks buttons and fills in a form. Below, a separate row shows a software robot doing the same clicks across desktop apps, labelled RPA.](https://learn.benibix.com/diagrams/dev3-web-automation.svg)

---

Source: https://learn.benibix.com/term/development/browser-automation
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
