Access a popup dialog and mouse click issue

Open
#260 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
desktop, testing

Research direction

Start by reviewing the DialogFinder returned by findDialog("dlgStop") and the APIs for accessing its JDialog and child components. Reproduce the intermittent click() behavior with the named JmenuItems and inspect whether the popup hierarchy or active component changes. Done should mean reliably accessing dlgStop and performing the intended menu clicks without targeting another window.

Written by the indexing model from the issue text.

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

Dominant language
Java
Stars
121
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from assertj/assertj-swing

All issues in assertj/assertj-swing

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.