Use Window Builder as AUT.
Sometimes Q7 records the following command (when selecting UI element on a palette and then setting it on a Dialog/Window etc.):
get-window -from "CustomTooltipManager.handleShowCustomTooltip()" | close
There is no such window during recording. Test case fails on this command. If I delete it - it passes.
See the attached test case for commented line.