Commit b37dff0d authored by Lisa's avatar Lisa

fix: initialize playwright before browser attach

parent fe97a4ad
...@@ -406,6 +406,8 @@ class BrowserController: ...@@ -406,6 +406,8 @@ class BrowserController:
async def execute(self, command: str, params: Dict[str, Any] = None) -> Dict[str, Any]: async def execute(self, command: str, params: Dict[str, Any] = None) -> Dict[str, Any]:
"""Dispatch a browser_control command from the node-agent wire protocol.""" """Dispatch a browser_control command from the node-agent wire protocol."""
params = params or {} params = params or {}
if self.playwright is None:
await self.initialize()
layer = params.get("layer", "high_level") layer = params.get("layer", "high_level")
page_id = params.get("page_id") page_id = params.get("page_id")
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment