assertj / assertj/assertj-swing

Access a popup dialog and mouse click issue

Open
#260 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
121
Forks
52
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.