remove the --profile flag on windows open and add opening a new window with a url

This commit is contained in:
2026-04-10 13:06:53 +02:00
parent 61b774a7a4
commit 362b53a384
8 changed files with 40 additions and 14 deletions
+3 -2
View File
@@ -293,8 +293,9 @@ class BrowserCLI:
def windows_close(self, window_id: int) -> None:
self._cmd("windows.close", {"windowId": window_id})
def windows_open(self, profile: str | None = None) -> dict:
return self._cmd("windows.open", {"profile": profile})
def windows_open(self, url: str | None = None) -> dict:
"""Open a new browser window, optionally on a URL."""
return self._cmd("windows.open", {"url": url})
# ── DOM ───────────────────────────────────────────────────────────────