assertj / assertj-swing

Fluent assertions for Swing apps
Other
109 stars 52 forks source link

Access a popup dialog and mouse click issue #260

Open NisaaPala opened 3 years ago

NisaaPala commented 3 years ago

Hi, I am trying to automate my java swing GUI. It is composed of a main JFrame from which a hierachy of Jdialogs/Jframes pop up depending on prevoius data entry and buttons clicked. Only the top most pane is ever active/enabled.

Each of my java components in the gui have a unique name. I am struggling to figure how to access my jdialog that pops up. So far I have:

DialogFinder exportConfigDlg = findDialog("dlgStop");

but from here how do i access the actual dialog and the components on it?

Another issue is, the click() action is volatile. I have various click action being performed on JmenuItems however these seem to be misfiring at times, there wa sa point wher ethe X on the eclipse screen was clicked (very bizarre, not sure how it got there given i had provided the menuitems name) and i was asked if i wanted to close eclipse. Any help in these areas would be much appreciated.

I eagerly look forward to your repsonses. Thanks in advance. Nisa