UFT 11.5 : WINLIST GetItem is throwing error
while trying to Automate a VC++/MFC application, I am trying to Check/UnCheck the checkbox in a WINLIST Item.
UFT 11.5 doesn't return values for WINLIST GetItem method.
Few more details are:
WinList GetItemsCount is 5 but GetItem(0) throws error
WinList GetSelection(), GetContent returns JUNK Values.
I need to loop through the Items and getvalue using GetItem/GetSubItem.
Do i need to install any patches on top of UFT 11.5? or What is the kind of code changes that needs to be done to application source to enable GetItem() values.
I tried the GetContent() and as i mentioned, it retrieves JUNK content in the watch window. No row is selected as an output of that function.
Please let me know incase of any patches with respect to the control data retrieval using GetItem() method is needed or some other mechanism where i can check/uncheck items in a particular Row.
Please share with me if anyone found way to check whether a checkbox is checked or not in WinList
As per my understanding, you are having a winlist and if expand the list, you would have options like CheckBox - OptionText.
If so, try to get the text using,
itemNo - Should be your item index - starts with 0 or 1
columnNo - Should be your column index - starts with 0 or 1; in your case should be 1 or 2 as CheckBox will be the first column.
Thank/Like to help others if my input helped you !!!
I am speaking for myself, not for my employer nor any one.
YOu mention 11.5.
I found it to be extremely buggy.
I'd go up to 11.53 before trying anything.