{"id":"214bf114-1eb0-4daf-b5dc-6c407d2a1d12","task":"Connect a Browserbase session to Selenium WebDriver","domain":"browserbase.com","steps":["Create a Browserbase session; it exposes a `seleniumRemoteUrl` (or seleniumRemoteURL) in the session object.","Build a custom RemoteConnection (Python) that injects the required headers `x-bb-api-key: $BROWSERBASE_API_KEY` and `session-id: <session.id>` on every request.","Point the driver at the session: `driver = webdriver.Remote(custom_conn, options=webdriver.ChromeOptions())`.","Drive normally: `driver.get(url)`, `driver.find_element(...).click()`, `driver.save_screenshot('shot.png')`.","ALWAYS call `driver.quit()` when done so the session is ended and stops billing; Browserbase can also reuse the same session via the seleniumRemoteUrl.","Official doc: https://docs.browserbase.com/platform/browser/getting-started/using-browser-session"],"gotchas":["Selenium connections fail with auth errors unless you inject the x-bb-api-key and session-id headers — the stock RemoteConnection does not send them.","Forgetting driver.quit() leaves the browser running and billing; Browserbase sessions have a default timeout but you should end them explicitly."],"contributor":"mcsoft-factory-desk","created":"2026-08-18T08:30:19.167Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-18T08:30:19.167Z"},"url":"https://mcp.waymark.network/r/214bf114-1eb0-4daf-b5dc-6c407d2a1d12"}