Chào các bạn đã đến với chủ đề tiếp theo của mình. Do Katalon hỗ trợ rất nhiều keyword dùng để verify, vì vậy, mình chia phần này ra 2 topic nhỏ. Ở topic này, mình sẽ tiếp tục giới thiệu các keyword còn lại như sau:
Nội dung
- 1. [WebUI] Verify Option Present By Label
- 2. [WebUI] Verify Option Not Present By Label
- 3. [WebUI] Verify Option Present By Value
- 4. [WebUI] Verify Option Not Present By Value
- 5. [WebUI] Verify Option Selected By Index
- 6. [WebUI] Verify Option Not Selected By Index
- 7. [WebUI] Verify Option Selected By Label
- 8. [WebUI] Verify Option Not Selected By Label
- 9. [WebUI] Verify Option Selected By Value
- 10. [WebUI] Verify Option Not Selected By Value
- 11. [WebUI] Verify Options Present
- 12. Kết
1. [WebUI] Verify Option Present By Label
- Keyword này dùng để kiểm tra rằng text option đang tồn tại trong dropdown list


- Ví dụ: verify if ‘HongKong Cura Health Center’ does present in the list. (https://katalon-demo-cura.herokuapp.com/)

2. [WebUI] Verify Option Not Present By Label
- Keyword này dùng để kiểm tra rằng text option đang Khônghiển thị trên control dropdown list

- Ví dụ: if “HongKong Cura Health Center” option does not present in the list. (https://katalon-demo-cura.herokuapp.com/)

3. [WebUI] Verify Option Present By Value
- Keyword này dùng để kiểm tra rằng value của option đang hiển thị trên control dropdown list


- Ví dụ: verify if ‘HongKong Cura Health Center’ does present in the list. (https://katalon-demo-cura.herokuapp.com/)

4. [WebUI] Verify Option Not Present By Value
- Keyword này dùng để kiểm tra rằng value của option đang Không hiển thị trên control dropdown list

- Ví dụ: verify if ‘Thailand CURA Center’ does not exist in the list. (https://katalon-demo-cura.herokuapp.com/)

5. [WebUI] Verify Option Selected By Index
- Keyword này dùng để kiểm tra rằng option given by index đang được selected trên control dropdown list


- Ví dụ: verify the option 0 is selected in the list (https://katalon-demo-cura.herokuapp.com/)

6. [WebUI] Verify Option Not Selected By Index
- Keyword này dùng để kiểm tra rằng option given by index đang Không được selected trên control dropdown list

- Ví dụ: verify the option 1 is not selected in the list (https://katalon-demo-cura.herokuapp.com/)

7. [WebUI] Verify Option Selected By Label
- Keyword này dùng để kiểm tra rằng option given by label đang được selected trên control dropdown list


- Ví dụ: verify if ‘HongKong Cura Health Center’ is selected in the list. (https://katalon-demo-cura.herokuapp.com/)

8. [WebUI] Verify Option Not Selected By Label
- Keyword này dùng để kiểm tra rằng option given by label đang Không được selected trên control dropdown list

- Ví dụ: verify if ”HongKong Cura Health Center” item does not exist in the list. (https://katalon-demo-cura.herokuapp.com/)

9. [WebUI] Verify Option Selected By Value
- Keyword này dùng để kiểm tra rằng option given by value đang được selected trên control dropdown list


- Ví dụ: if ‘HongKong Cura Health Center’ is selected in the list. (https://katalon-demo-cura.herokuapp.com/)

10. [WebUI] Verify Option Not Selected By Value
- Keyword này dùng để kiểm tra rằng option given by value đang Không được selected trên control dropdown list

- Ví dụ: verify if an item with value ‘HongKong Cura Health Center’ does not exist in the list.

11. [WebUI] Verify Options Present
- Keyword này dùng để kiểm tra rằng tất cả cả các expected options tồn tại trong control dropdown list

- Ví dụ: verify if ‘HongKong Cura Health Center’ is present in the list.

12. Kết
Như vậy chúng ta đã tìm hiểu qua 1 số keyworks dùng để verify trong Katalon. Cảm ơn các bạn đã theo dõi bài viết của mình. Chúc các bạn thành công.
Hẹn gặp lại các bạn ở những chủ đề tiếp theo. Bái bai.
Bài viết được mình tham khảo từ Katalon doc: https://docs.katalon.com/docs/katalon-studio-enterprise/keywords/web-ui-keywords/webui-accept-alert