Closed GoogleCodeExporter closed 9 years ago
Hi Simeon,
If I understood the bug description correctly, it is really not a bug. It is a
case
of bad API design from our part. We have the method 'select' which will make the
parent menu(s) visible before selecting the menu of interest. The method
'click' only
clicks the menu if it is already visible. I think we should eliminate 'select'
and
make 'click' behave like 'select' does. I also consider this has to be done
before we
reach the first release candidate (1.0R1), otherwise we will have to maintain
two
methods that do exactly the same.
-Alex
Original comment by Alex.Rui...@gmail.com
on 26 Jun 2008 at 9:21
Alex,
Yes, I think the "bug" is more of understanding the semantics of click() vs.
select(). I'm realizing "select" is a very overloaded word in GUI parlance.
Perhaps
the distinction is that "select" is appropriate when you are choosing something
from
the underlying data model (e.g. list, combo box, check box, maybe even a table
cell),
and "click" is more appropriate as a synonym for "invoke" or "perform", when the
underlying model is supported by an Action. But then there's also the definition
where "click" means "mouse press then release". Diagramming all this out,
showing the
different layer of the architecture (e.g. AWT Robot -> FEST Robot -> Driver ->
Fixture -> User Code) and the "verbs" that apply at each level might help.....
just
thinking out loud.
My apologies for the title not being more accurate. Feel free to change it if
you desire.
Simeon
Original comment by simeon.f...@gmail.com
on 28 Jun 2008 at 5:13
Hi Simeon,
I got a little bit confused. Do you agree that it would be better to have
'click'
perform the behavior of 'select', and we should eliminate 'select'? (I was
creating a
test that involved JMenuItems and it was very easy to get confused with these
two
methods) :D
-Alex
Original comment by Alex.Rui...@gmail.com
on 8 Jul 2008 at 1:02
I think in the case of the JMenuItem, it should be "click()". I think select
should
be reserved for the case where the user is choosing from among an explicit list
of
things, such as in a JList or JComboBox, and where an argument is required. If
no
argument is required (i.e. button or menu), I suggest using click().
Original comment by simeon.f...@gmail.com
on 8 Jul 2008 at 1:06
Replaced method 'select(JMenuItem)' with 'click(JMenuItem)' in
org.fest.swing.fixture.JMenuItemFixture.
Removed method 'doubleClick(JMenuItem)' in
org.fest.swing.fixture.JMenuItemFixture.
Removed method 'rightClick(JMenuItem)' in
org.fest.swing.fixture.JMenuItemFixture.
Removed method 'click(JMenuItem, MouseButton)' in
org.fest.swing.fixture.JMenuItemFixture.
Original comment by Alex.Rui...@gmail.com
on 9 Jul 2008 at 6:12
Set the module as a label, instead of being part of the title.
Original comment by Alex.Rui...@gmail.com
on 1 Dec 2008 at 2:05
Original issue reported on code.google.com by
simeon.f...@gmail.com
on 26 Jun 2008 at 9:10