Forum Discussion
Abramova
Staff
14 years agoHi,
You can first find all cells with check boxes by using the FindAll method. This method will return an array of all found cells. Then, you can create a loop to obtain a child object of each cell object in the array and call the ClickChecked method of this object (the object corresponds to the check box). For example:
Dim cells, checkbox
cells = Aliases.IEXPLORE.pageJobTitleWindow.formFrmjobtitles.panel.table.cell.panel.tableGvjobtitle.FindAll("tagName", "TH", 5)
If UBound(cells) >= 0 Then
For i = 0 To UBound(cells)
Set checkbox = cells(i).Child
If checkbox.Exists Then
checkbox.ClickChecked(True)
End If
Next
Else
Log.Warning("No cells found.")
End If