This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I'm returning to Java after many years away; I'm generally a web application programmer in various scripting languages, so returning to stand-alone GUI apps in Java is slow going. I try to follow TDD in whatever language I'm working in.
I'm having trouble locating components with Jemmy. Their on-line API documention appears to no longer be linked for netbeans site, nor are the classes listed in the master list. However some google search's turned up some possibly orphaned pages. The book I've been working from references a "NameBasedChooser" for locating components when you have multiple similar type compoents (such as 3 JLists). However, there doesn't seem to be any "NameBasedChooser" class in the Jemmy package at this time. I found a NameComponentChooser but it doesn't seem to work.
The text based chooser fails because the first JList tends to contain superstrings of all the possible search terms in the later JLists.
Can anyone offer advice? or links to more complete Jemmy tutorials than at the jemmy.netbeans.org site? Thank you.
Looks like it was just an oversight on my part -- the first JList that Jemmy kept claiming for any of the latter ones was wrapped in a JScrollPane. I had named the JScrollPane not the wrapped JList, so of course the NameComponentChooser argument on the JListOperator wasn't finding anything.