【Katalon學習Web UI】複選框操作

Verify Element Not Checked

驗證是否沒有選中給定的web元素。

Param Param Type Mandatory Description
to TestObject Required 表示web元素。
timeout int Required 系統最多等待超時(秒)以返回結果。
flowControl FailureHandling Optional 指定failure handlingschema以確定是否應該允許執行繼續或停止。

 Check

選中一個開關按鈕(複選框/單選按鈕)。

 

Param Param Type Mandatory Description
to TestObject Required 表示web元素。
flowControl FailureHandling Optional 指定failure handlingschema以確定是否應該允許執行繼續或停止。

 Un-check

取消按鈕(複選框/單選按鈕)。

Param Param Type Mandatory Description
to TestObject Required 表示web元素。
flowControl FailureHandling Optional 指定failure handlingschema以確定是否應該允許執行繼續或停止。

 Verify Element Checked

驗證是否選中了給定的web元素。

Param Param Type Mandatory Description
to TestObject Required 表示web元素
timeout int Required 系統最多等待超時(秒)返回結果
flowControl FailureHandling Optional 指定failure handlingschema以確定是否應該允許執行繼續或停止

 返回

Param Type Description
boolean

驗證結果:

  • true 如果選中該元素返回true。
  • false 如果元素未選中返回false。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章