Okay, so what if the site I need to authorize in doesn't support direct login since the api is closed and it's very complicated. So I need to use Selenium for logging into the session, but then somehow transfer it to the, for example, httpx AsyncClient (which is basically requests.session, but Async), because I have to authorize and get some data for each user in some period of time (let's say, 30 seconds). And so i need selenium for only reauthorizing users, but not for requests.
I've tried to use the Selenium webdriver, but the type of site I'm trying to save session from closes the session when I close the tab, so quit and close are not appropriate ones in my case, because I need the async session to be alive for the whole time to not trigger the browser to close it.