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=0to NoOfChildObjs-1
    Checkboxes(Counter).Set "ON"
Next

原文地址:https://www.cnblogs.com/futrueface/p/4123381.html