Skip to content

Selenium

Selenium is not a supported client. Use Playwright or Puppeteer, which take the URL /connect returns as-is.

Selenium attaches to a running Chrome through ChromeDriver’s options.debugger_address, which takes a host:port and expects Chrome’s /json/* HTTP endpoints behind it. /connect returns a single WebSocket URL with none of those endpoints, so ChromeDriver fails with session not created ... unable to connect to renderer.

Most Selenium calls have a direct Playwright equivalent:

Selenium Playwright (Python)
driver.get(url) page.goto(url)
driver.find_element(By.CSS_SELECTOR, sel) page.locator(sel)
element.click() page.locator(sel).click()
element.send_keys("text") page.locator(sel).fill("text")
driver.title page.title()
driver.page_source page.content()
driver.quit() POST /api/browser/close with the session id

The full connect-and-close sample is on Playwright.

Was this page helpful?