如在出售中的 宝贝中有很多宝贝要进行批量下架,可以用以下方法得到:
Set MyDescription = Description.Create()
MyDescription("html tag").Value = "INPUT"
MyDescription("type").Value = "checkbox"
MyDescription("name").Value="selectedIds"
'指定在该页面下符合上述条件的控件
Set Checkboxes = Browser("test").Page("onsale").ChildObjects(MyDescription)
NoOfChildObjs = Checkboxes.Count
For Counter=0 to NoOfChildObjs-1
'对该类型的数据赋值
Checkboxes(Counter).Set "ON"
Next