Initialize a new browser session Args: session_id: Unique identifier for this session context: Browser context (shared or dedicated) notebook_url: Target NotebookLM URL for this session
(self, session_id: str, context: BrowserContext, notebook_url: str)
| 28 | """ |
| 29 | |
| 30 | def __init__(self, session_id: str, context: BrowserContext, notebook_url: str): |
| 31 | """ |
| 32 | Initialize a new browser session |
| 33 | |
| 34 | Args: |
| 35 | session_id: Unique identifier for this session |
| 36 | context: Browser context (shared or dedicated) |
| 37 | notebook_url: Target NotebookLM URL for this session |
| 38 | """ |
| 39 | self.id = session_id |
| 40 | self.created_at = time.time() |
| 41 | self.last_activity = time.time() |
| 42 | self.message_count = 0 |
| 43 | self.notebook_url = notebook_url |
| 44 | self.context = context |
| 45 | self.page = None |
| 46 | self.stealth = StealthUtils() |
| 47 | |
| 48 | # Initialize the session |
| 49 | self._initialize() |
| 50 | |
| 51 | def _initialize(self): |
| 52 | """Initialize the browser session and navigate to NotebookLM""" |
nothing calls this directly
no test coverage detected