How to click/parse/switch to window popup

I want to login with a social account, but the site opens a new window that cannot be switched by “switchTab” (Well, or I’m doing something wrong).
I just need to click on the confirmation button in this window (The authorization itself is done through a cookie). Get the link from which the window opens, the possibilities are not extended (There are a lot of transmitted data, including cookies that come from it is not clear where (In the site code, there are only links to more than 20 js scripts). I have 2 outputs, get a response from a file with a link (Its can be seen in the Network tab) or somehow select this window and just click on the button.
This window is similar to the one generated by this code(js)…

let params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,

open('/', 'test', params);

@data.ADDRESS returns a link to the site from which the window opens (OB2)
even if you close the main tab and leave only the additional

Please create an issue on github for this