| Issue 157: | JMenuItemFixture.click() fails on Mac OS X with apple.laf.useScreenMenuBar | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
If the application is launched on Mac with system property "apple.laf.useScreenMenuBar" set to "true", JMenuItemFixture.click() fails to click on menu. Steps to reproduce the problem: 1. Compile and launch the attached test application. Expected result: menu should be clicked and show its content. Actual result: FEST fails to click on menu. It tries to click right below the frame title. The menu content is not shown. Tested on FEST 1.0a2, Mac OS X 10.5 Attachment contains the test application. |
||||||||||||||||||
,
Jun 13, 2008
It is quite natural for Java apps running on Mac to display the menu bar in the Mac screen menu bar. Also, some legacy apps may use "com.apple.macos.useScreenMenuBar" system property (which is now deprecated). |
|||||||||||||||||||
,
Jun 13, 2008
We are currently using following workaround: If OS is Mac and screen menu bar is used, we call JMenuItemFixturemenu.target.doClick() instead of JMenuItemFixture.click() |
|||||||||||||||||||
,
Jun 13, 2008
Thank you so much for the detailed explanation...it makes it a lot easier to fix! :) We'll include the fix for this bug in our next release (1.0a3...we expect to release it next week) Many thanks! -Alex
Summary: [fest-swing] JMenuItemFixture.click() fails on Mac OS X with apple.laf.useScreenMenuBar
Status: Accepted Owner: Alex.Ruiz.05 Labels: -Priority-Medium Priority-Critical OpSys-All Milestone-Release1.0 |
|||||||||||||||||||
,
Jun 15, 2008
Working on a fix. It seems that getting the position of a JMenu when positioned in the screen menu bar doesn't work. We can fall back to Andriy workaround to call 'doClick' :) I found a message from Simeon Fitch that reported this bug on May 22nd.
Owner: wanghy1101
Cc: easytest...@googlegroups.com |
|||||||||||||||||||
,
Jun 15, 2008
Fixed. Used Andriy's workaround :) Many thanks! -Yvonne
Status: Fixed
|
|||||||||||||||||||
,
Nov 30, 2008
Set the module as a label, instead of being part of the title.
Summary: JMenuItemFixture.click() fails on Mac OS X with apple.laf.useScreenMenuBar
Labels: Module-fest-swing |
|||||||||||||||||||
|
|
|||||||||||||||||||