# Trouble Shoot

<details>

<summary>How do I wait for the loader</summary>

Loader can be configured in 2 ways as explained. Link to the refence.[loader](/studio/ui-elements/loader.md#automation)

</details>

<details>

<summary>How do I inspect the loader</summary>

In the daily applications we see different types of loaders and their behavior completely depends on the time taken for the page to load.

Open the developers tools in the browser and navigate to source tab. PAUSE the browser when you see a loader\
Now sit back inspect the element and write the locator.

</details>

<details>

<summary>I don't have / see a loader on my webpage</summary>

In the modern application, we definitely see a element that will dissappear after loading the content of the page. \
If, there was no such elements in our web page. We need to skip thinking about the loader and validate the header of the page to continue further

</details>

<details>

<summary>What was the maximum time I can wait for the loader</summary>

Usually, we can wait for the maximum of 2 minutes for a loader and completely depends on the network conditions and multiple factors.

</details>

<details>

<summary>I couldn't inspect my loader. It was fast as rocket</summary>

Yes, we do see this kind of situations where a loader is disappeared in a fraction of milli seconds. Pausing the script and inspection was the only way we can do it.

</details>

<details>

<summary>I have multiple loaders in my application, How can i handle them</summary>

Yes, this is pretty simple in QATTS. this can be done in either of ways in action class / action.

Ex : action.pre : waitforloader:UI\_Element

</details>

<details>

<summary>Sometimes my loader appears and sometimes not. How does this work</summary>

Yes, As said we might not get the loaders all the time. QATTS has an internal mechanism when the loader is not found in 2 seconds. It just skips and proceeds with the next steps in action.

</details>

<details>

<summary>Timeout exception in the task when loader appears</summary>

This happens when the loader time is greater than the given maximum time of the UI element. increasing the time will solve the problem

</details>


---

# Agent Instructions: 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.qatts.com/studio/ui-elements/loader/trouble-shoot.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.
