> For the complete documentation index, see [llms.txt](https://docs.hidemium.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hidemium.io/hidemium-4/iv.-tu-dong-hoa-automation-and-ai/automation-advance/s-ly-popup-xuat-hien-lien-nhau.md).

# SỬ LÝ POPUP XUẤT HIỆN LIỀN NHAU

Use case vài Pop up xuất hiện liền nhau này xảy ra cực nhiều trong khi thực hiện việc connect các ví tiền điện tử khi thực hiện nhiệm vụ airdrop. Vậy các bạn đã biết cách xử lý và sắp xếp các node auto sao cho hợp lý chưa ? Cùng Hidemium tìm ra cách làm tối ưu và chính xác nhất nhé.\
Đầu tiên chắc chắn là phải cài extension ví trước rồi nhé. Bỏ qua các bước râu ria thì đến đoạn click vào connect wallet này. Chỗ này mình cứ nghĩ là dùng node CLICK đúng không ? Nhưng không nhé, Nếu click vào đây mà xuất hiện popup ví Metamask thì ta dùng luôn node SWITCH POPUP EXTENSION nhé, node này chính là sự kết hợp của ” click vào element + switch sang page popup ” cho nên chỉ cần nhập element mà click vào sẽ xuất hiện popup vào node SWITCH POPUP EXTENSION là được.

<img src="https://i.imgur.com/xWzCK2S.png" alt="" height="383" width="1124">

&#x20;

<figure><img src="https://i.imgur.com/PLvys5S.png" alt="" height="485" width="896"><figcaption><p>Nhập vào xpath/css của button hay phần nào mà click vào sẽ show ra popup</p></figcaption></figure>

&#x20;

Sau khi switch thì xuất hiện popup nên các thao tác khác lại dùng như bình thường. Và dặc biệt khi popup 1 tắt đi thì các bạn phải switch về main page để thao tác tiếp nhé. Nếu sau đó tiếp tục là 1 lần click vào để hiện ra popup thì bạn lại nối thêm node switch popup extension vào switch như hướng dẫn bên trên. Nhưng cần switch về main page đã nhé.

<img src="https://i.imgur.com/84h0243.png" alt="" height="467" width="565">

&#x20;

Nếu trong trường hợp popup 1 không tắt đi, mà khi thao tác trên popup 1 xuất hiện luôn popup 2 thì bạn không cần switch về main page nữa, lúc này bạn switch luôn sang popup 2 bằng node Switch popup extension nhé. .

Còn trong trường hợp popup extension hiện ra khi không click vào đâu cả, bất ngờ hiện ra thì bạn sử dụng node SWITCH EXTENSION POPUP mà không cần nhập element nhé, chỉ cần điền timeout là được.


---

# 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.hidemium.io/hidemium-4/iv.-tu-dong-hoa-automation-and-ai/automation-advance/s-ly-popup-xuat-hien-lien-nhau.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.
