This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

clicking a button to show a popup using doClick() is not releasing the button - JFCUnit  RSS feed

 
Sg Ramkumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm using JFCUnit to automate a Swing application. There are several screens on which I'm programmatically clicking on "Next" button which takes me to the next screen.
I'm using the following code for that:

JButton myButton = (JButton)JFCTestHelper.findNamedComponent(buttonName, appWindow, index);
myButton.doClick();


The problem that I'm facing is, when I click on a non-next button of a screen, like a button when clicked, shows a popup asking for an input, I noticed that the button is not being released and so the new popup is not gaining control, because of which I'm not able to provide the input on the popup

Can somebody please help me on this with a small piece of code.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!