FEST

Include window hierarchy in stacktrace when WindowFinder fails

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.2a3
  • Fix Version/s: FEST-Swing 1.2rc
  • Component/s: Swing
  • Labels:
    None
  • Number of attachments :
    0

Description

When a dialog is not found, you currently get
org.fest.swing.exception.WaitTimedOutError: Timed out waiting for component to be found using matcher org.fest.swing.core.matcher.DialogMatcher[name=<Any>, title='MyDialogTitle', requireShowing=false]
at org.fest.swing.timing.Pause.pause(Pause.java:74)
at org.fest.swing.finder.ComponentFinderTemplate.findComponentWith(ComponentFinderTemplate.java:89)
at org.fest.swing.finder.DialogFinder.using(DialogFinder.java:75)
at [...]

I would be nice to include the current window hierarchy in that message, so it becomes clear if it's a misspelled title or someting else that caused it.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: