QTP全选页面的复选框

时间:2023-03-09 20:51:41
QTP全选页面的复选框

Set glht= Browser("管理后台").Page("管理后台")

Set Mydescription = description.Create()
Mydescription("html tag").Value = "INPUT"
Mydescription("type").Value = "checkbox"
Set Checkboxes = glht.ChildObjects(Mydescription)
NoOfChildObjs = Checkboxes.Count
For Counter=0 to NoOfChildObjs-1
    Checkboxes(Counter).Set "ON"
Next