Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JToggleButtonFixture.doubleClick() sometimes fails #21

Open
PAX523 opened this issue Jul 25, 2013 · 1 comment
Open

JToggleButtonFixture.doubleClick() sometimes fails #21

PAX523 opened this issue Jul 25, 2013 · 1 comment

Comments

@PAX523
Copy link

PAX523 commented Jul 25, 2013

Unfortunately, I cannot give you any source code examples and this bug doesn't occur permanently.

We have several JToggleButtons in our dialog. Initially, they are all selected. In our FEST test case we execute a double click on their JToggleButtonFixtures. The first click seems to be executed, but sometimes the second click won't be applied by FEST.

I checked this via several System.outs added to item listener list of these buttons.

Two single click invocations do the job as well. But if you provide double click then this should work, too.

@PAX523
Copy link
Author

PAX523 commented Jul 26, 2013

As I can see in the following implementation you don't have a delay time between mouse press and mouse release event. Possibly, the operating system requires such a delay in order to process double click properly?

org.fest.swing.core.BasicRobot.click(Component, Point, MouseButton, int)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant