How to inspect a programatically closing tooltip?