Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1793

SwfList: unchecked all items

$
0
0
Hi,
I have this SwfComboBox whin in SwfList (checkbox + label):
[Image: uft_swflist_swfcombobox.png]

I would unchecked or deselect all items of SfwList.

I try with this code:
Code:
listItemCount = SwfWindow("Task List").SwfComboBox("filter_checkedComboBox").Object.Items.Count
        
For iterator = 0 To listItemCount - 1
    itemCurrent = SwfWindow("Task List").SwfWindow("ccbParent").SwfList("cclb").GetItem(iterator)
    SwfWindow("Task List").SwfWindow("ccbParent").SwfList("cclb").Deselect(itemCurrent)
Next

But this code generates one error and if combobox is not open GetItem(iterator) not works.

How can I resolve it?

Thanks.

Viewing all articles
Browse latest Browse all 1793


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>