<titledata-rh="true">CDPSession.detach() method | Puppeteer</title><metadata-rh="true"name="viewport"content="width=device-width,initial-scale=1"><metadata-rh="true"name="twitter:card"content="summary_large_image"><metadata-rh="true"property="og:url"content="https://pptr.dev/api/puppeteer.cdpsession.detach"><metadata-rh="true"name="docusaurus_locale"content="en"><metadata-rh="true"name="docsearch:language"content="en"><metadata-rh="true"name="docusaurus_version"content="19.3.0"><metadata-rh="true"name="docusaurus_tag"content="docs-default-19.3.0"><metadata-rh="true"name="docsearch:version"content="19.3.0"><metadata-rh="true"name="docsearch:docusaurus_tag"content="docs-default-19.3.0"><metadata-rh="true"property="og:title"content="CDPSession.detach() method | Puppeteer"><metadata-rh="true"name="description"content="Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages."><metadata-rh="true"property="og:description"content="Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages."><linkdata-rh="true"rel="icon"href="/img/favicon.ico"><linkdata-rh="true"rel="canonical"href="https://pptr.dev/api/puppeteer.cdpsession.detach"><linkdata-rh="true"rel="alternate"href="https://pptr.dev/api/puppeteer.cdpsession.detach"hreflang="en"><linkdata-rh="true"rel="alternate"href="https://pptr.dev/api/puppeteer.cdpsession.detach"hreflang="x-default"><linkdata-rh="true"rel="preconnect"href="https://DVKY664LG7-dsn.algolia.net"crossorigin="anonymous"><linkrel="search"type="application/opensearchdescription+xml"title="Puppeteer"href="/opensearch.xml"><linkrel="stylesheet"href="/assets/css/styles.b357ffad.css">