Skip to main content

How do I inspect the live browser in Chrome DevTools?

Use the Inspect button to open Chrome DevTools on the live browser of a run, and keep the session open after the run ends.

Written by Ines

When you execute a web Test Case in the Test Case Editor, the Inspect button opens Chrome DevTools on the live browser of the run, in a new tab. Use it to look at the elements, the console and the network requests of the page under test, for example to find why a step failed.

Prerequisites

  • You are an Admin or a Member of the organization.

  • Your Test Case is a web Test Case that runs on Chrome or Chromium. Select the browser in the Browser settings of the Test Case.

  • You start the run yourself, with Execute in the Test Case Editor.

1. Open Chrome DevTools

  1. In the Test Case Editor, click Execute.

  2. When the live browser is up, the Inspect button shows above the browser, on the right of the tab bar. Hover over it: the tooltip says "Inspect this browser in Chrome DevTools" and "Shows its elements, console and network. Opens in a new tab."

  3. Click Inspect. Chrome DevTools opens in a new tab, connected to the live browser.

You can open DevTools while the run executes its steps, to follow the console and the network as they happen, or after the run ends.

2. Inspect the browser after the run

When the run ends, passed or failed, Inspect stays available for 5 minutes. Hover over Inspect to see the time that remains, for example "Inspect this browser in Chrome DevTools · 04:32 left".

To get more time, click the clock button next to Inspect (Extend the DevTools session). Each click gives the session 30 minutes from now, and a message confirms it, for example "DevTools session extended by 30 min".

The bar above the live browser after a run: the Inspect button with its tooltip

When the time ends, Inspect is disabled. Its tooltip says "DevTools session expired" and "Run the test again to inspect the browser." Click Execute to start a new run and inspect its browser.

The bar above the live browser after the time ends: the Inspect button grayed out, with its tooltip

Frequently asked questions

How do I inspect a run that already ended?

Execute the Test Case again in the Test Case Editor, then click Inspect. A Test Run Report shows the steps and the screenshots of a run, but its browser is closed, so it has no Inspect button.

How do I keep DevTools open longer after a run?

Click the clock button next to Inspect before the time ends. Each click gives the session 30 minutes from now. After the time ends, the button no longer shows and you need a new run.

How do I inspect a run that a teammate started?

Execute the Test Case yourself. Inspect opens only the browser of a run that you started, in your own organization.

Which browsers can I inspect?

Chrome and Chromium. With another browser in the Browser settings, for example Firefox, Safari or Microsoft Edge, the Inspect button does not show. It does not show on a SAP step either.

Related articles on this topic that you might find helpful

Did this answer your question?