Taking a screenshot of a tooltip
You can do this using the screencapture CLI:

screencapture -T 5 -C ~/Desktop/screencapture.png


Define a delay using -T &lt;seconds&gt;. Use -C to capture the cursor too.

Add -i to capture interactively. This uses the normal capture region selection available from ⌘⇧4, however you can combine this with -T to add a delay so that it captures the tooltip in the region.