You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
A run can now take over a window that is already open, in Chrome or in an Electron app such as VS Code or Slack. --attach (or attach=True in run_task) skips opening a tab and drives an existing page, and --target-match TEXT picks the first page whose title or URL contains TEXT. The window stays open after the run, and with no --start the run begins on whatever the window already shows. --cdp-port PORT finds the browser from its
DevTools port, which is how an Electron app started with --remote-debugging-port is reached. connect_cdp()
hands a script the same attached page, without the agent. Windows an Electron app opens on its own join the run
only with --target-match, because in a browser such a window is as likely a tab someone opened by hand.