mibutec / popperfw

Declarative PageObjects for Java
Apache License 2.0
3 stars 3 forks source link

[BUG] Popper finds 'old' windows #2

Closed mibutec closed 7 years ago

mibutec commented 7 years ago

We currently have some dangling Swing tests. I have the suspicion that Popper finds "old" (not visible) windows, whereby then potentially just such a window before the current (visible) window with the same title is preferred.

Swing seems to manage the window list based on WeakReferences, so the test result depends on

To solve one would have to org.popper.fw.jemmy.JemmyPageObjectHelper.AllWindowsSearchContextProvider.getContainer () not all windows, but only those where IsVisible () is true ...

mibutec commented 7 years ago

Is it possible to filter all not visible dialogs or may there exist usecase someone want to access not visible dialogs?

nwwerum commented 7 years ago

Merged the pull request...