renatoathaydes / Automaton

Simple framework which allows the testing of Swing and JavaFX2 applications.
Apache License 2.0
100 stars 21 forks source link

Added support for selecting javax.swing.JList items by text. #25

Closed kbroadbent closed 9 years ago

kbroadbent commented 9 years ago

I added support for finding JList items by their text. It will work if the default cell renderer is used. It has been tested with both single and multi-column lists.

I added a sample (src/test/groovy/com/athaydes/automaton/samples/JListSample.groovy) where JList items in a list with three columns are being clicked on using a text selector.

meyertee commented 9 years ago

Would love to use this too! @renatoathaydes , did you have any thoughts on merging this?

renatoathaydes commented 9 years ago

@meyertee yeah, of course! I've been pretty busy with other projects and left this a little abandoned for a while... I am planning to get more active on this again soon. Will merge this PR as soon as I can.

renatoathaydes commented 9 years ago

Version 1.2.3 was just released and includes this contribution. Thank you again!

meyertee commented 9 years ago

That was fast, many thanks to the both of you!