For some (notably not all) of my GitHub accounts, when attempting to generate a PAT, a popup window appears (see image below).

It seems that this popup window is not accounted for, and as a result an exception is thrown:
github_fine_grained_token_client.common.UnexpectedContentError: no token value found on page