benjamin84 / fest

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

Click on party-hidden (in scrollpane) button #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
<button | [another compconent]

<button without scrol pane>

where
| - scroll panes divider

What steps will reproduce the problem?
1. Button is inside scrollpane, button's center is hidden, we can see ~ 40%
2. JButtonFixture's click() trying to click another component.

What is the expected output? What do you see instead?
Expected - click on visible part of button, or pls give us ability to
specify whick part of button to click (not only center) - maybe in
MouseClickInfo.

See instead - another component clicked.

Original issue reported on code.google.com by filim...@gmail.com on 15 Aug 2008 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by Alex.Rui...@gmail.com on 15 Aug 2008 at 1:41

GoogleCodeExporter commented 9 years ago
Fixed.

* Methods 'click(Component)' in org.fest.swing.core.RobotFixture now click on 
the
center of the visible area of the component, only if the component is an 
instance of
javax.swing.JComponent.

* Added method 'centerOfVisibleRect(JComponent)' to org.fest.swing.util.AWT.

* Added methods 'scrollToMaximum' and 'scrollToMinimum' to
org.fest.swing.fixture.JScrollBarDriver.

Original comment by Alex.Rui...@gmail.com on 11 Oct 2008 at 6:24

GoogleCodeExporter commented 9 years ago
The second part of this issue (click anywhere in a component) is now issue 212
(enhancement request.)

Original comment by Alex.Rui...@gmail.com on 11 Oct 2008 at 6:26

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 3:16