# More examples

> The programs of the chromedp/examples repository, each a complete program for one task.

The page: https://chromedp.dev/guides/examples/

The repository [chromedp/examples](https://github.com/chromedp/examples) has
larger programs, each for one task. Almost all of them run on your computer
with no internet. This table comes from the doc comment of each program.

The 46 programs of [chromedp/examples](https://github.com/chromedp/examples) v0.24.1. Run one with `go run github.com/chromedp/examples/<name>@latest`.

| Program | What it shows |
| --- | --- |
| [click](https://github.com/chromedp/examples/tree/v0.24.1/click) | Use a selector to click on an element |
| [console](https://github.com/chromedp/examples/tree/v0.24.1/console) | Read the console of a page and its uncaught exceptions with chromedp.Console |
| [contexts](https://github.com/chromedp/examples/tree/v0.24.1/contexts) | See the JavaScript contexts that a tab already has, with chromedp.WithListener |
| [cookie](https://github.com/chromedp/examples/tree/v0.24.1/cookie) | Set an HTTP cookie on requests |
| [dialogs](https://github.com/chromedp/examples/tree/v0.24.1/dialogs) | Handle the JavaScript dialogs of a page |
| [distrust](https://github.com/chromedp/examples/tree/v0.24.1/distrust) | Check that a browser rejects the certificates of a compromised certificate authority |
| [download_file](https://github.com/chromedp/examples/tree/v0.24.1/download_file) | Do headless file downloads |
| [download_image](https://github.com/chromedp/examples/tree/v0.24.1/download_image) | Do headless image downloads |
| [dragdrop](https://github.com/chromedp/examples/tree/v0.24.1/dragdrop) | Drag and drop with the actions DragAndDrop and DragAndDropXY |
| [emulate](https://github.com/chromedp/examples/tree/v0.24.1/emulate) | Emulate a specific device such as an iPhone |
| [eval](https://github.com/chromedp/examples/tree/v0.24.1/eval) | Evaluate JavaScript and retrieve the result |
| [eventsiter](https://github.com/chromedp/examples/tree/v0.24.1/eventsiter) | Listen to the events of a page with iterators |
| [exposefunc](https://github.com/chromedp/examples/tree/v0.24.1/exposefunc) | Call Go functions from a page with chromedp.ExposeFunc |
| [extension](https://github.com/chromedp/examples/tree/v0.24.1/extension) | Install a browser extension, uBlock Origin Lite, into the browser that chromedp starts, and how to show that it blocks the ads of a page |
| [fast](https://github.com/chromedp/examples/tree/v0.24.1/fast) | Measure the speed of the internet connection and show the result in the terminal |
| [forecast](https://github.com/chromedp/examples/tree/v0.24.1/forecast) | Render the weather forecast of a city in the terminal |
| [frames](https://github.com/chromedp/examples/tree/v0.24.1/frames) | Reach elements inside an iframe and inside a shadow root |
| [geoip](https://github.com/chromedp/examples/tree/v0.24.1/geoip) | Look up the location of an IP address and show its map in the terminal |
| [har](https://github.com/chromedp/examples/tree/v0.24.1/har) | Generate a HAR file from the network events of a page |
| [headers](https://github.com/chromedp/examples/tree/v0.24.1/headers) | Add extra HTTP headers to browser requests |
| [intercept](https://github.com/chromedp/examples/tree/v0.24.1/intercept) | Block, mock and change the requests of a page with the Fetch domain |
| [keys](https://github.com/chromedp/examples/tree/v0.24.1/keys) | Send key events to an element |
| [latlon](https://github.com/chromedp/examples/tree/v0.24.1/latlon) | Retrieve the latitude and the longitude of a map from the URL of the page with the navigation events of the page |
| [logic](https://github.com/chromedp/examples/tree/v0.24.1/logic) | Combine actions and Go code in a function that reads a list from a page |
| [multi](https://github.com/chromedp/examples/tree/v0.24.1/multi) | Use headless-shell and a container (Docker, Podman, other) |
| [pdf](https://github.com/chromedp/examples/tree/v0.24.1/pdf) | Capture a PDF of a page |
| [pdfoptions](https://github.com/chromedp/examples/tree/v0.24.1/pdfoptions) | Print a page to PDF files with different options of chromedp.PrintToPDF |
| [pdfstream](https://github.com/chromedp/examples/tree/v0.24.1/pdfstream) | Print a page to a PDF file with a stream |
| [popups](https://github.com/chromedp/examples/tree/v0.24.1/popups) | Work with the popups of a page and with several targets |
| [proxy](https://github.com/chromedp/examples/tree/v0.24.1/proxy) | Authenticate to a proxy server that requires authentication |
| [rawcall](https://github.com/chromedp/examples/tree/v0.24.1/rawcall) | Send protocol commands that chromedp has no action for |
| [remote](https://github.com/chromedp/examples/tree/v0.24.1/remote) | Connect to an existing Chrome DevTools instance using a remote WebSocket URL |
| [screencast](https://github.com/chromedp/examples/tree/v0.24.1/screencast) | Record the screen of a page as a series of JPEG images |
| [screenshot](https://github.com/chromedp/examples/tree/v0.24.1/screenshot) | Take a screenshot of a specific element and of the entire browser viewport |
| [selectors](https://github.com/chromedp/examples/tree/v0.24.1/selectors) | Choose the elements of a page with the typed selectors |
| [session](https://github.com/chromedp/examples/tree/v0.24.1/session) | Save the state of a session and restore it in another browser |
| [structeval](https://github.com/chromedp/examples/tree/v0.24.1/structeval) | Evaluate JavaScript into typed Go values |
| [submit](https://github.com/chromedp/examples/tree/v0.24.1/submit) | Fill out and submit a form |
| [subtree](https://github.com/chromedp/examples/tree/v0.24.1/subtree) | Populate and travel a subtree of the DOM |
| [tabs](https://github.com/chromedp/examples/tree/v0.24.1/tabs) | Use several tabs of one browser |
| [termcast](https://github.com/chromedp/examples/tree/v0.24.1/termcast) | Stream the screen of the browser to the terminal with terminal graphics |
| [text](https://github.com/chromedp/examples/tree/v0.24.1/text) | Extract text from a specific element |
| [timeline](https://github.com/chromedp/examples/tree/v0.24.1/timeline) | See the events of a page of every type in the order in which Chrome sent them |
| [upload](https://github.com/chromedp/examples/tree/v0.24.1/upload) | Upload a file on a form |
| [visible](https://github.com/chromedp/examples/tree/v0.24.1/visible) | Wait until an element is visible |
| [workers](https://github.com/chromedp/examples/tree/v0.24.1/workers) | Run many jobs at the same time in one browser with a pool of goroutines |
