"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[29802],{3905:(e,t,n)=>{n.d(t,{Zo:()=>l,kt:()=>f});varr=n(67294);functiono(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiona(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functions(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functioni(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}varc=r.createContext({}),p=function(e){vart=r.useContext(c),n=t;returne&&(n="function"==typeofe?e(t):s(s({},t),e)),n},l=function(e){vart=p(e.components);returnr.createElement(c.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){vart=e.children;returnr.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){varn=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),d=p(n),f=o,m=d["".concat(c,".").concat(f)]||d[f]||u[f]||a;returnn?r.createElement(m,s(s({ref:t},l),{},{components:n})):r.createElement(m,s({ref:t},l))}));functionf(e,t){varn=arguments,o=t&&t.mdxType;if("string"==typeofe||o){vara=n.length,s=newArray(a);s[0]=d;vari={};for(varcint)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i.mdxType="string"==typeofe?e:o,s[1]=i;for(varp=2;p<a;p++)s[p]=n[p];returnr.createElement.apply(null,s)}returnr.createElement.apply(null,n)}d.displayName="MDXCreateElement"},97243:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>c,toc:()=>l});n(67294);varr=n(3905);functiono(){returno=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},o.apply(this,arguments)}functiona(e,t){if(null==e)return{};varn,r,o=function(e,t){if(null==e)return{};varn,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);returno}(e,t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}returno}consts={sidebar_label:"CDPSession.detach"},i="CDPSession.detach() method",c={unversionedId:"api/puppeteer.cdpsession.detach",id:"version-19.10.1/api/puppeteer.cdpsession.detach",title:"CDPSession.detach() method",description:"Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages.",source:"@site/versioned_docs/version-19.10.1/api/puppeteer.cdpsession.detach.md",sourceDirName:"api",slug:"/api/puppeteer.cdpsession.detach",permalink:"/api/puppeteer.cdpsession.detach",draft:!1,tags:[],version:"19.10.1",frontMatter:{sidebar_label:"CDPSession.detach"},sidebar:"api",previous:{title:"CDPSession.connection",permalink:"/api/puppeteer.cdpsession.connection"},next:{title:"CDPSession.id",permalink:"/api/puppeteer.cdpsession.id"}},p={},l=[{value:"Signature:",id:"signature",level:4}],u={toc:l};functiond(e){var{components:t}=e,n=a(e,["components"]);return(0,r.kt)("wrapper",o({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",o({},{id:"cdpsessiondetach-method"}),"CDPSession.detach() method"),(0,r.kt)("p",null,"DetachesthecdpSessionfromthetarget.Oncedetached,thecdpSessionobjec