I've created a Swing test, and am having an issue with a JListLocator in a dialog.
The list is in a dialog, and the values in the list are file pathnames, such as
"S:/FOO/research/research/json-api/examplefinance.pcrm".
When I recorded the test, the following code was generated:
ui.click(new JListLocator("S:/FOO/research/research/json-api/examplefinance.pcrm"));
When I run the test, I get the error
com.windowtester.runtime.WidgetNotFoundException: Component not found WidgetLocator(javax.swing.JList, "examplefinance.pcrm");
I'm wondering a) why it didn't work, and b) why it reported the issue is that it couldn't find "examplefinance.pcrm",
instead of the full text value. I noticed in running earlier tests that when expanding nodes in a hierarchy, the
UI records the tree path with '/' between items, so am wondering if somehow it thinks the value it's searching
for is actually a path among a number of widgets. I couldn't find anything in the docs that described what happens
when a data value contains '/', or which WidgetLocators (like the one for trees) it "works" for, or how to escape
things so that it records correctly in my case. Any pointers would be appreciated!
Thanks,
Dave