# Utilising Mobile Inspector

SimplifyQA’s Mobile Inspector allows users to identify, inspect, and capture mobile application objects to use in test cases. This feature ensures accurate object recognition for smooth test automation.

In this section we'll learn,

* [Understanding mobile inspector](#unserstanding-mobile-inspector)
* [Inspecting Mobile Elements](#inspecting-mobile-elements)
* [Refreshing Device Mirroring](#refreshing-the-device-mirroring)
* [Managing Captured objects](#managing-captured-objects)
* [Evaluating Elements in XML](#evaluate-elements-in-xml)

***

### How to Use the Mobile Inspector

The Mobile Inspector applies to both Android and iOS devices. To use it effectively, ensure the following prerequisites are met:

**Prerequisites:**

* The device must be connected to the system.
* The SimplifyQA agent should be active.

**Accessing the Mobile Inspector:**

1. Navigate to the User Navigation Panel.
2. Go to Test Management > Object Repository.

<figure><img src="/files/7LYZpIqbZVwbSe8yMHiM" alt=""><figcaption></figcaption></figure>

3. On the top-right corner, click on the Object Inspector.

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

4. Click on Mobile (this option appears only when the device is connected).

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

5. A list of all connected devices will be displayed. Click on the desired device.

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

### Unserstanding Mobile Inspector

Once connected, you will see:

* Screen Mirroring of the mobile device and XML Structure of the UI elements.
* Object Capture Column shows the objects you have selected for inspection.

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

### Inspecting Mobile Elements

1. Click on the Inspect icon.

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

2. A green highlight will appear, showing all objects identified by the tool.

<figure><img src="/files/0CgSWFNlbal60GziOBGg" alt=""><figcaption></figcaption></figure>

3. Click on an element to capture it:
   1. The object will be listed on the right.
   2. Its location will be highlighted in the XML view.

<figure><img src="/files/7aOV6qNyLxO81e5MRv2T" alt=""><figcaption></figcaption></figure>

### Refreshing the Device Mirroring

* Click on the Refresh button to update the screen mirroring.

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

### Managing Captured Objects

The Objects Column displays all inspected objects, where you can:

* Save or Delete captured objects.
* Click on an object to view detailed attributes, including:
  * Name
  * Type
  * Attributes
* Rename the object and save it for use in test cases.

<figure><img src="/files/8BtGRELNrspcC56EMnlZ" alt=""><figcaption></figcaption></figure>

### Evaluate Elements in XML

1. Copy the XPath from a captured object by clicking on the Copy button.
2. Paste the XPath in the XML Search field.
3. Click Evaluate to highlight the element in the XML.

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

1. To create a new object with the searched XPath:
   1. Click on the + icon next to the Evaluate button.
   2. A new unnamed object will be created.
   3. Rename and save the object.

### Saving Captured Objects:

* You can save all captured objects or
* Select specific objects using checkboxes and save only those which are required.

###

The Mobile Inspector in SimplifyQA provides a robust way to inspect and capture mobile application objects for seamless automation. By following these steps, users can efficiently locate elements, store objects, and integrate them into test cases for successful mobile test automation.


---

# 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.simplifyqa.ai/introduction-to-test-management-in-simplifyqa/utilising-mobile-inspector.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.
