benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Clicking on menu item never showed a pop-up menu #184

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes getting exception:

org.fest.swing.exception.ActionFailedException: Clicking on menu item
<javax.swing.JMenu[name=null, text='Window', selected=false, enabled=true,
visible=true, showing=true]> never showed a pop-up menu
    at
org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedExcepti
on.java:33)
    at
org.fest.swing.driver.JMenuItemDriver.ensurePopupIsShowing(JMenuItemDriver.java:
88)
    at org.fest.swing.driver.JMenuItemDriver.click(JMenuItemDriver.java:81)

But i really do not know how to reproduce it =-\

Robot settings:
        robot.settings().eventMode(EventMode.AWT);
        robot.settings().delayBetweenEvents(0);
        robot.settings().eventPostingDelay(0);

Original issue reported on code.google.com by filim...@gmail.com on 21 Jul 2008 at 5:23

GoogleCodeExporter commented 9 years ago
Menu showing for moment, but immediatly disappearing. Maybe it is somehow 
linked with
mouse event sequence we are sending to menu item.

Original comment by filim...@gmail.com on 21 Jul 2008 at 5:45

GoogleCodeExporter commented 9 years ago
Thanks Filimono, you are really putting the AWT event mode to the test! We truly
appreciate it!

Original comment by Alex.Rui...@gmail.com on 21 Jul 2008 at 2:04

GoogleCodeExporter commented 9 years ago
It seems to be a duplicate of issue 165

Original comment by Alex.Rui...@gmail.com on 25 Jul 2008 at 5:19

GoogleCodeExporter commented 9 years ago
No, it is another exception.
And also it is fest-swing-1.0a3.

The same menu sometimes opens sometimes not.

Never seen this bug in ROBOT mode, only in AWT.

Original comment by filim...@gmail.com on 25 Jul 2008 at 8:46

GoogleCodeExporter commented 9 years ago
Hi Filimono,

What I meant is that 'click' doesn't show the menu, it expects to menu to be 
visible.
On the other hand, 'select' shows the menu *and* clicks it. I removed 'select' 
and
made 'click' behave as 'select'.

-Alex

Original comment by Alex.Rui...@gmail.com on 31 Jul 2008 at 6:06

GoogleCodeExporter commented 9 years ago
There is another similar problem (somehow linked with mouse events and awt 
mode, VERY
hard to reproduce):  jtable (or maybe jtree - in my case it is was on 
tree-table =)).
When  selecting distant rows very fast (e.g. 1, 1000, 2, 500, ...) sometimes 
rows
between e.g. 1 and 100 became selected, looks like mouse was not released when 
table
(tree) start to scroll to ensure visibility of next row, or even was not 
released at all.

Worst thing that it is very hard to reproduce this bug for me in debug mode, 
only in
run, because of execution speed. 

Still trying to catch it...

Original comment by filim...@gmail.com on 1 Aug 2008 at 4:49

GoogleCodeExporter commented 9 years ago
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:10