class TabIdGenerator:
Monotonically increasing tab ID generator.
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.
def __new__(cls):
def __init__(self):
def _load_stealth_script(self):
Load the stealth JavaScript script from file.