A test clicks "View invoice" and then looks for the invoice number. It fails. The invoice opened in a new tab, and Selenium is still pointed at the old one.
This is a rule worth stating plainly: the driver has exactly one window in focus at any time. Opening a tab does not move that focus. You move it yourself.
Selenium identifies windows with handles, which are just opaque id strings.