Get a control URL
Every browser session has a A session keeps running until it is stopped, so stop it in
control_url: the WebSocket the driver connects
to, carrying a short-lived token for that one session. Start a session with
your API key and read it from the result:finally, which
runs even when your code raises.Inside a Halyard sandbox the session is already open and
HALYARD_CONTROL_URL is set, so you can skip this step.Connect and drive the page
The whole script
quickstart.py
Next steps
Connecting
Control URLs, named connections and the session client.
Page
Navigation, scripts, waits and locators.