Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
GimmeJob
Sign in
Testing tools: hands-on guides · Chapter 01 / 09

Testing Tools

Chrome DevTools

Chrome DevTools is built into every Chrome and Edge browser. It's the first tool to open on almost any web bug. You can see what the page rendered, which requests it sent, what the server answered, what is stored in the browser, and how the page behaves on a slow phone. This chapter walks through the panels a QA engineer uses every day, with exact clicks and shortcuts.

Key factDetails
InstallNothing to install. It ships with Chrome, Edge, Brave, Opera and other Chromium browsers
OpenF12, or Ctrl+Shift+I (Windows/Linux), or Cmd+Option+I (macOS)
Best forUI and front-end bugs, API calls made by the page, cookies and storage, responsive layout, quick mocks
Firefox equivalentFirefox DevTools: Inspector, Console, Network Monitor, Storage, Responsive Design Mode
Reproduce the bug → Elements/Console: what broke on screen? → Network: which request failed and why? → Application: what state was stored? → Device Mode / throttling: does it depend on the device or network? → Copy as cURL / HAR → attach evidence to the bug report

Opening DevTools, docking and the Command Menu

  1. Right-click any element on the page and choose Inspect. DevTools opens with that element selected in Elements.
  2. Use Ctrl+Shift+J (Windows/Linux) or Cmd+Option+J (macOS) to jump straight to Console.
  3. Use Ctrl+Shift+C / Cmd+Shift+C to turn on the element picker, then hover over the page.
  4. Click the ⋮ menu in DevTools → Dock side to place DevTools at the bottom, on the right, or in a separate window. A separate window is handy when you test narrow layouts.
  5. Press Ctrl+Shift+P / Cmd+Shift+P to open the Command Menu. Type a command such as screenshot, disable JavaScript, sensors or coverage instead of hunting through menus.

The panels you will use most often are Elements, Console, Sources, Network, Application and Lighthouse. Panels that don't fit are hidden behind the » button. The drawer at the bottom (Esc) holds extra tools such as Console, Network conditions, Request conditions and Sensors.

QA tip: The Command Menu command Capture full size screenshot saves the whole scrollable page as a PNG. That's useful for layout bugs without installing an extension.

Elements and Console: inspect the page and read errors

Elements shows the live DOM, which is not always the same as the HTML source. Use it to answer "what is actually on the screen?"

  1. Pick an element with Ctrl+Shift+C and check its tag, classes, id, data-testid and ARIA attributes. These values are also what automation locators rely on.
  2. Press Ctrl+F / Cmd+F inside Elements to search by text, CSS selector (button.primary) or XPath (//button[text()='Save']). This is a quick way to check a locator before you put it in a test.
  3. Double-click a text node and paste a very long or Unicode string to test overflow and wrapping without touching the backend.
  4. In the Styles pane click :hov and tick :hover, :focus or :active to freeze an interactive state for inspection.
  5. Right-click a node → Break on → subtree modifications to pause JavaScript at the moment something changes or disappears.

Console shows JavaScript errors, failed resource loads, CORS and mixed-content warnings, and messages logged by the app.

  1. Open the Default levels dropdown and enable Verbose when you need everything, or only Errors when the log is noisy.
  2. Open Console settings (gear icon) and enable Preserve log so errors survive a redirect or a page reload.
  3. Click the file link on the right of an error to jump to the line in Sources.
  4. Type $0 to reference the element currently selected in Elements, or run copy(document.title) to copy a value to the clipboard.
Caveat: Changes made in Elements live only in your tab and disappear on reload. They are good for exploring, but they don't prove the bug is fixed.

Network: find, filter and read a request

The Network panel records every request the page makes while DevTools is open. Open DevTools before you reproduce the bug, or reload the page.

  1. Open Network and check that recording is on (the red circle).
  2. Enable Preserve log if the flow redirects or reloads, such as a login or a payment flow.
  3. Click Fetch/XHR in the type filter bar to hide images, fonts and scripts and keep only API calls.
  4. Type a filter in the Filter box. Properties combine with AND, for example status-code:500 method:POST. Tick Invert to hide what matches.
  5. Click a request and read the tabs: Headers (URL, method, status, request and response headers), Payload (query string and body), Preview / Response (what the server returned), Cookies and Timing.
Chrome DevTools Network panel with the Headers tab of a selected request
Official Chrome DevTools documentation screenshot: the Headers tab of a request selected in the Requests table.
FilterShows
status-code:404Only responses with that status
method:POSTOnly POST requests
domain:api.example.comOnly one host. Wildcards such as domain:*.example.com work
larger-than:1MResponses bigger than 1 MB
mime-type:application/jsonOnly JSON responses
More filters → Blocked requestsRequests the browser blocked
QA tip: In the Timing tab, a long Waiting for server response means the backend is slow. A long Content Download points to payload size or network speed. Put that distinction in the bug report.

Network: throttling, offline and blocking requests

Many bugs appear only on a slow or broken network: double submits, missing spinners, timeouts, or retries that create duplicates.

Throttle the network

  1. In Network, open the Throttling dropdown (it says No throttling by default).
  2. Pick a preset such as Fast 4G, Slow 4G or 3G, or choose Offline to cut the connection entirely.
  3. Reproduce the flow and watch for loading states, timeouts and duplicate requests.
  4. Switch back to No throttling when you're done. A warning icon on the Network tab reminds you that throttling is on.
The Network panel throttling dropdown with presets
Official Chrome DevTools documentation screenshot: the network throttling dropdown with presets.

Block one request or a whole pattern

  1. Right-click a request in the Name column and select Block request (or Throttle request to slow only that one).
  2. The Request conditions drawer opens with the pattern added, and Enable blocking and throttling is checked.
  3. Click Edit to widen the pattern with *, for example *://cdn.example.com/* or */api/recommendations*.
  4. Reload and check that the page degrades gracefully: an error message, a retry button, and no blank screen.
  5. Untick Enable blocking and throttling when you finish. Closing DevTools also turns blocking off, but the patterns stay saved.
Caveat: Disable cache and throttling apply only while DevTools is open, and only to the current tab.

Network: Copy as cURL, replay and HAR export

A request copied out of DevTools is the fastest way to give a developer a reproducible case.

  1. Right-click the request → Copy → Copy as cURL. On Windows, Chrome offers both (cmd) and (bash) variants. Pick the one that matches the shell you will paste into.
  2. Paste the command into a terminal or import it into Postman (Import → paste the cURL text).
  3. To resend a request from the browser, right-click it → Edit and resend as fetch. The Console opens with a fetch() call that you can edit and run with Enter. Older Chrome versions call this item Replay XHR.
  4. To share the whole session, click Export HAR (sanitized)… in the Network action bar, or right-click → Copy → Save all listed as HAR (sanitized).

The sanitized HAR leaves out Cookie, Set-Cookie and Authorization headers. Exporting with sensitive data has to be switched on in Settings → Preferences → Network first. Only use it on test accounts.

Selecting Save all listed as HAR (sanitized) from the context menu
Official Chrome DevTools documentation screenshot: exporting the request list as a sanitized HAR file.
Caveat: A copied cURL command contains every header the browser sent, including session cookies and tokens. Remove or rotate them before you paste it into a ticket or a chat.

Application: cookies, storage and clearing site data

The Application panel shows what the site has stored in the browser. Many "works for me" bugs turn out to be stale state.

  1. Open Application → Storage → Cookies and select the site's origin.
  2. Check each cookie's Domain, Path, Expires / Max-Age, HttpOnly, Secure, SameSite and Partition Key. Enable Only show cookies with an issue to see cookies the browser rejected.
  3. Double-click a value to edit it, for example to expire a session or switch a feature flag. Double-click an empty row to add a cookie.
  4. Select a cookie and click Delete selected, or click Clear all for the origin.
  5. Under Local storage, Session storage and IndexedDB, inspect and edit the keys the front end keeps.
  6. Open Application → Storage and click Clear site data to reset the origin to a first-visit state in one click.
The Cookies pane in the Chrome DevTools Application panel
Official Chrome DevTools documentation screenshot: the Cookies pane.
QA tip: For checks like "log out in one tab, act in another", delete the session cookie in Application. It's faster and more precise than clearing the whole browser history.

Device Mode: responsive layouts, touch and geolocation

Device Mode simulates a phone or tablet viewport inside desktop Chrome.

  1. Click Toggle device toolbar in the top-left corner of DevTools, or press Ctrl+Shift+M / Cmd+Shift+M.
  2. Open the Dimensions list and choose a device, or choose Responsive and drag the handles. The width presets bar offers 320, 375, 425, 768, 1024, 1440 and 2560 px.
  3. Click More options (⋮ in the device toolbar) → Add device pixel ratio and Add device type. Mobile sends touch events, Desktop sends click events.
  4. Open the Throttle list in the device toolbar and pick Mid-tier mobile or Low-end mobile. This slows down both the network and the CPU.
  5. For location-based features, open ⋮ → More tools → Sensors. Choose a city in Location, enter custom coordinates with Other…, or pick Location unavailable to test the error path.
  6. Use More options → Capture screenshot to attach exactly what the simulated device showed.
The Chrome DevTools device toolbar
Official Chrome DevTools documentation screenshot: the device toolbar in Device Mode.
Caveat: Device Mode is only an approximation. It doesn't emulate a mobile CPU, the real mobile browser engine, the keyboard or OS behaviour. Confirm important mobile bugs on a real device using remote debugging (chrome://inspect with an Android phone over USB).

Local overrides: mock a response or header without a backend

Local overrides let you change what the server returned and keep that change across reloads. You can test an empty list, a missing field or a new header before the backend is ready.

  1. In Network, right-click a request (for example a JSON API response) and choose Override content.
  2. The first time, DevTools asks for a folder to store override files. Select an empty folder and click Allow in the permission bar.
  3. DevTools opens the response in Sources. Edit it (for example change "items": [...] to "items": []) and save with Ctrl+S / Cmd+S.
  4. Reload the page. The overridden request shows a purple dot next to its Response tab.
  5. To change headers, right-click the request → Override headers, then add or edit values in Response Headers, such as Cache-Control or a CORS header. Reload to apply.
  6. To stop, open Sources → Overrides and untick Enable Local Overrides, or delete the files.
Choosing Override content from the request context menu
Official Chrome DevTools documentation screenshot: Override content in the right-click menu of a request.
Caveat: Overrides replace the body and headers, but they can't change the HTTP status code. The cache is also disabled while overrides are on. To simulate a 500 or a timeout, use Requestly, Charles or Fiddler (covered later in this path).

Cheat sheet

TaskHow
Open DevToolsF12, Ctrl+Shift+I, Cmd+Option+I
Element pickerCtrl+Shift+C / Cmd+Shift+C
Command MenuCtrl+Shift+P / Cmd+Shift+P
Device toolbarCtrl+Shift+M / Cmd+Shift+M
Keep requests after reloadNetwork → Preserve log
Only API callsNetwork → Fetch/XHR
Slow or offline networkNetwork → Throttling dropdown
Block a requestRight-click → Block request
Reproducible commandRight-click → Copy → Copy as cURL
Session evidenceExport HAR (sanitized)…
Reset site stateApplication → Storage → Clear site data
Mock a responseRight-click → Override content
Quick auditLighthouse panel → Analyze page load
Hands-on lab: mock an API response, then break the network

You need Chrome and about 15 minutes. The lab uses the free practice API jsonplaceholder.typicode.com.

  1. Open https://jsonplaceholder.typicode.com/ in Chrome and press F12.
  2. In Network, enable Preserve log and click Fetch/XHR.
  3. Switch to Console and run the snippet shown after this list. You should see an object with "completed": false.
  4. Back in Network, select the request named 1 and open Response.
  5. Right-click it → Override content. Choose an empty folder and click Allow.
  6. In the editor that opens, change "completed": false to "completed": true, add "note": "mocked by QA", and save with Ctrl+S / Cmd+S.
  7. Run the snippet again. The Console now prints your edited object, and the request shows a purple dot next to Response.
  8. Right-click the same request → Block request. Run the snippet again. The Console shows TypeError: Failed to fetch, and the Status column in Network marks the request as blocked.
  9. Untick Enable blocking and throttling in Request conditions. Then set Throttling to 3G and run the snippet again. Compare the time in the Time column.
  10. Clean up: Sources → Overrides → untick Enable Local Overrides, and set Throttling back to No throttling.
fetch("https://jsonplaceholder.typicode.com/todos/1")
  .then((response) => response.json())
  .then(console.log);

What to write in a bug report: the request URL, the status, what the response contained, which state you simulated (override, block or throttle), and what the UI did.

Official Chrome DevTools: Local overrides · Request conditions

Summary

  • Open DevTools before reproducing a bug, enable Preserve log, and filter Network down to Fetch/XHR so you see only the API calls.
  • Elements and Console tell you what broke on the screen. Network tells you which request caused it and whether it's the client, the server or the network.
  • Throttling, Request conditions and Local overrides let you create slow, broken and edge-case states without changing the backend.
  • Share evidence as a cleaned-up cURL command or a sanitized HAR, and never paste live tokens into tickets.

Source registry

Verified 22 Nov 2026
Chrome DevTools documentation

Panels, shortcuts and the overall DevTools workflow

Google Chrome · verified
Source ↗
Chrome DevTools Network features reference

Network filters, Preserve log, throttling presets, Copy as cURL, edit and resend, HAR export

Google Chrome · verified
Source ↗
Chrome DevTools: Request conditions (block and throttle requests)

Blocking and per-request throttling from the Network panel and the Request conditions drawer

Google Chrome · verified
Source ↗
Chrome DevTools: View, add, edit and delete cookies

Cookies pane columns, editing, filtering, deleting and cookies with issues

Google Chrome · verified
Source ↗
Chrome DevTools: Simulate mobile devices with Device Mode

Device toolbar, dimensions, DPR, device type, throttling, sensors and Device Mode limitations

Google Chrome · verified
Source ↗
Chrome DevTools: Override web content and HTTP response headers locally

Override content and headers, overrides folder setup, markers and limitations

Google Chrome · verified
Source ↗
Firefox DevTools User Docs

Firefox equivalents of the Chrome DevTools panels

Mozilla · verified
Source ↗
Lighthouse overview

Quick page-load audits from the Lighthouse panel

Google Chrome · verified
Source ↗