> For the complete documentation index, see [llms.txt](https://docs.dogq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dogq.io/use-cases/transient-elements.md).

# Transient elements

<details>

<summary>Chrome DevTools Hotkeys Cheat Sheet</summary>

**open DevTools** - **ctrl+shift+i** / **F12** on the keyboard or right-clicking anywhere on a page and selecting "Inspect"

**pause script execution** (Sources panel) - **F8** or click the <img src="/files/6YoAVCPmvkCyoGeR0yBz" alt="" data-size="line"> button in the top-right area of the panel

**open Console** - **ctrl+shift+j** or open DevTools first and go to the Console tab

**start debugger with a delay** (Console) - paste `setTimeout(function() {debugger}, 3000)` in the Console and press **Enter** (the delay value is in ms, i.e. 3000 = 3 sec. If you need more time, simply increase the number)

</details>

Some elements can have a behavior pattern that makes inspecting them in DevTools tricky. Namely, custom elements implemented by the means of JavaScript and integrated elements, e.g., autocomplete menus, suggestion dropdowns, etc. are sometimes designed to only appear temporarily and will disappear from DOM when we click anywhere on the page or try to inspect them inside DevTools, i.e. they disappear on losing focus.&#x20;

To inspect such elements we need to make the browser enter **debugging mode**, which will effectively freeze the UI state and allow us to select the targeted element.&#x20;

To start **debugger**:

1. open DevTools (**ctrl+shift+i** / **F12** on the keyboard, or right-click anywhere on the page and choose "Inspect")
2. go to the "Sources" panel <img src="/files/yO2KAwXb6DVpWEuQTWNx" alt="" data-size="line">
3. pause script execution (**F8** or click the <img src="/files/6YoAVCPmvkCyoGeR0yBz" alt="" data-size="line"> button in the top-right area of the panel)

At this point Chrome debugger has paused the UI state (you should see this message <img src="/files/8Sy47T511bp6tvVPLJHK" alt="" data-size="line"> at the top of the page) and that pesky element can be inspected.

<figure><img src="/files/CXnXFbmYJud7Ey7RrWGd" alt=""><figcaption></figcaption></figure>

#### Starting debugger with a delay

Oftentimes such transient elements will still disappear when we try to enter debugging mode by either pressing **F8** on the keyboard or clicking the <img src="/files/6YoAVCPmvkCyoGeR0yBz" alt="" data-size="line"> button. The trick here to use the debugger with a delay. &#x20;

Let's take a look at the following example case.

<figure><img src="/files/RfzwTPCunPr1kb2asMhi" alt="" width="563"><figcaption></figcaption></figure>

A lot of applications today integrate [Google Place Autocomplete](https://developers.google.com/maps/documentation/places/web-service/autocomplete) to provide the type-ahead-search behavior of the Google Maps search field. These suggestion menus are removed from the DOM as soon we try to pause the UI state conventionally. To bypass that we need to use the **setTimeout()** function in DevTools Console.&#x20;

To do this:

1. open DevTools (**ctrl+shift+i** / **F12** on the keyboard, or right-click anywhere on the page and choose "Inspect")
2. go to the "Console" panel <img src="/files/5aK3T5kutkxAayPnHo9w" alt="" data-size="line"> (you can also press **ctrl+shift+j** on the keyboard to immediately open the Console)
3. paste the line `setTimeout(function() {debugger}, 3000)` in the Console

<figure><img src="/files/foMrLHqUEKakGWvICInP" alt=""><figcaption></figcaption></figure>

Once you've copied this into your Console and pressed **Enter**, you will have 3 seconds to make the menu you're interested in appear on the screen. If you need more time, simply increase the number (the delay value at the end is in **ms**, i.e. 3000 = 3 seconds). When you get the element in question appear on the screen, simply wait until the timer runs out and debugger freezes the UI state.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dogq.io/use-cases/transient-elements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
