How can I force SilkTest to click the expand and collapse icons in my JavaJFCTreeView?
SilkTest will execute double-clicks against nodes in a JavaJFCTreeView to expand and collapse the nodes. If a Java application contains a JavaJFCTreeView which requires clicks to be executed against the small expand and collapse icons in the tree (usually a small square with a +/- sign) instead of the nodes themselves, then playback will result in the expand/collapse failing to execute.
To overcome this problem, the option UseExpandButton can be added to the SilkTest javaex.ini file and the value set to TRUE.
To edit the Java extension options:
- Close SilkTest and the AUT, if they are open.
- Open javaex.ini, located in the extend subdirectory of the directory where you installed SilkTest. If you are using a SilkTest Project, the applicable javaex.ini file is in the project, not in the SilkTest install directory.
- Go to the [Options] section (unless otherwise noted) and change the value of the option. You may need to add a line containing the section name, if it does not already exist.
- Save and close the javaex.ini file.
- Restart SilkTest.