Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SwfList: unchecked all items
#1
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,490 07-14-2016, 07:52 PM
Last Post: robertosalemi
  Select Menu items shilpaS 1 7,078 06-19-2015, 01:23 AM
Last Post: supputuri
  Object Spy not detecting items in C ICL AndyBSG 5 4,352 11-28-2014, 09:32 PM
Last Post: AndyBSG
  to verify the presence of items in wpf application Priyanka2 0 2,431 10-10-2013, 03:52 PM
Last Post: Priyanka2
At MISSING MENU ITEMS IN QTP ahmet571 2 4,057 11-27-2012, 02:42 PM
Last Post: Prashant kandukuri

Forum Jump:


Users browsing this thread: 2 Guest(s)