remove the --profile flag on windows open and add opening a new window with a url
This commit is contained in:
@@ -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 ───────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user