TabIdGenerator

class TabIdGenerator:

Monotonically increasing tab ID generator.

HybridBrowserSession

class HybridBrowserSession:

Lightweight wrapper around Playwright for browsing with multi-tab support.

It provides multiple Page instances plus helper utilities (snapshot & executor). Multiple toolkits or agents can reuse this class without duplicating Playwright setup code.

This class is a singleton per event-loop and session-id combination.

new

def __new__(cls):

init

def __init__(self):

_load_stealth_script

def _load_stealth_script(self):

Load the stealth JavaScript script from file.