Tree items with a check box
I have a tree item wherein each item has a check box associated with it. Winrunner recognizes it as a list.
I am recording the following:
Select an item and expand it. Winrunner displays list_expand_item() function in the script. However, when I rerun the
script, instead of expanding the tree, it checks the check box.
Similarly I record selecting a non-expandable item and selecting its check box. I get the following 4 lines
generated in the script:
When I rerun this script it only works if the original item is previously selected.
I am working with a Java based applictaion and I do have add ins installed.
It will be great if anyone has any ideas regarding it.
Re: Tree items with a check box
If this is a Java application, and from your description, this list is customized. You might want to try calling the Java API functions to do the selection. Use the java_activate_method to call the proper Java function. You'll need to find out the list class, use the GUI Spy to find out. If this is a custom list object your developer created, ask them if there's a method to do that selection. Otherwise, look up the Java API once you know what class this list object inherits from.