mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
Assign playwright if successful start prior to browser initialization
This commit is contained in:
@@ -146,9 +146,9 @@ class Browser:
|
||||
async def _init(self):
|
||||
"""Initialize the browser session"""
|
||||
playwright = await async_playwright().start()
|
||||
browser = await self._setup_browser(playwright)
|
||||
|
||||
self.playwright = playwright
|
||||
|
||||
browser = await self._setup_browser(playwright)
|
||||
self.playwright_browser = browser
|
||||
|
||||
return self.playwright_browser
|
||||
|
||||
Reference in New Issue
Block a user