• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Sg Ramkumar
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);

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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic