# Inspector

Inspector là chức năng hỗ trợ anh em lấy thông tin package, element của ứng dụng để sử dụng trong việc viết Automation.

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

Thanh công cụ Inspector

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

* **Select Devices: Ô hiển thị các thiết bị đang kết nối với Gemphonefarm**
* **Reload:** Load lại giao diện hiện tại của thiết bị sau khi thao tác trên màn hình.
* **Search for element: Tìm kiếm element theo Id/ XPath / Name / Class Name /**&#x20;

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

* Select Elements: Bắt theo elements.

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

Attribute: Thuộc tính của phần tử

Xpath: Xpath của element

Bounds: Ranh giới của phần tử

Class: Tên class của element

Index: Thứ tự lớp ưu tiên của element

Text: Tên của element

Package name: Tên package của ứng dụng

\----------------------------------------------------------

Checkable: Kiểm tra phần tử đó có tích được hay không, dùng với tickbox.

Checked: Check trạng thái ô đã được tích hay chưa, dùng với tickbox.&#x20;

Clickable: Check phần tử có click được hay không ?

* Clickable = True : Có thể click vào phần tử
* Clickable = False : Không thể click vào phần tử

Enabled: Bật tắt phần tử - Gạt sang trái hoặc phải&#x20;

Focusable: Check ô phần tử có click được và có nhập được văn bản vào hay không ?

Focused:&#x20;

Scrollable: Check có cuộn được hay không ?

Long-clickable: Check có thể nhấn và giữ hay không ?

Password: Check ô đó có phải ô nhập mật khẩu hay không ?

Lưu ý : Ngoài ra các bạn có thể chọn element thông qua giao diện code của ứng dụng.

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

* Tap/Swipe By Coordinates: Chạm/Vuốt theo tọa độ hoặc hướng .
* Download Screenshot: Chụp và download ảnh chụp màn hình về máy.

Show/Hide Element Handles

Cho phép hiện hoặc ẩn các element trên màn hình

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

{% embed url="<https://youtu.be/8qNO96xsHB4>" %}


---

# 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://gemphonefarm.gitbook.io/gemphonefarm-book-1/huong-dan-su-dung/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.
