"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[83856],{3905:(e,t,a)=>{a.d(t,{Zo:()=>u,kt:()=>d});varr=a(67294);functionn(e,t,a){returntine?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}functionl(e,t){vara=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}returna}functioni(e){for(vart=1;t<arguments.length;t++){vara=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}returne}functionp(e,t){if(null==e)return{};vara,r,n=function(e,t){if(null==e)return{};vara,r,n={},l=Object.keys(e);for(r=0;r<l.length;r++)a=l[r],t.indexOf(a)>=0||(n[a]=e[a]);returnn}(e,t);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)a=l[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}returnn}varo=r.createContext({}),s=function(e){vart=r.useContext(o),a=t;returne&&(a="function"==typeofe?e(t):i(i({},t),e)),a},u=function(e){vart=s(e.components);returnr.createElement(o.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){vart=e.children;returnr.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){vara=e.components,n=e.mdxType,l=e.originalType,o=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),m=s(a),d=n,g=m["".concat(o,".").concat(d)]||m[d]||c[d]||l;returna?r.createElement(g,i(i({ref:t},u),{},{components:a})):r.createElement(g,i({ref:t},u))}));functiond(e,t){vara=arguments,n=t&&t.mdxType;if("string"==typeofe||n){varl=a.length,i=newArray(l);i[0]=m;varp={};for(varoint)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p.mdxType="string"==typeofe?e:n,i[1]=p;for(vars=2;s<l;s++)i[s]=a[s];returnr.createElement.apply(null,i)}returnr.createElement.apply(null,a)}m.displayName="MDXCreateElement"},89158:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>c,frontMatter:()=>l,metadata:()=>p,toc:()=>s});varr=a(87462),n=(a(67294),a(3905));constl={sidebar_label:"Page.emulateIdleState"},i="Page.emulateIdleState() method",p={unversionedId:"api/puppeteer.page.emulateidlestate",id:"version-17.1.3/api/puppeteer.page.emulateidlestate",title:"Page.emulateIdleState() method",description:"Emulates the idle state. If no arguments set, clears idle state emulation.",source:"@site/versioned_docs/version-17.1.3/api/puppeteer.page.emulateidlestate.md",sourceDirName:"api",slug:"/api/puppeteer.page.emulateidlestate",permalink:"/api/puppeteer.page.emulateidlestate",draft:!1,tags:[],version:"17.1.3",frontMatter:{sidebar_label:"Page.emulateIdleState"},sidebar:"sidebar",previous:{title:"Page.emulateCPUThrottling",permalink:"/api/puppeteer.page.emulatecputhrottling"},next:{title:"Page.emulateMediaFeatures",permalink:"/api/puppeteer.page.emulatemediafeatures"}},o={},s=[{value:"Parameters",id:"parameters",level:2},{value:"Example",id:"example",level:2}],u={toc:s};functionc(e){let{components:t,...a}=e;return(0,n.kt)("wrapper",(0,r.Z)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"pageemulateidlestate-method"},"Page.emulateIdleState() method"),(0,n.kt)("p",null,"Emulates the idle state. If no arguments set, clears idle state emulation."),(0,n.kt)("p",null,(0,n.kt)("strong",{parentName:"p"},"Signature:")),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-typescript"},"class Page {\n emulateIdleState(overrides?: {\n isUserActive: boolean;\n isScreenUnlocked: boolean;\n }): Promise<void>;\n}\n")),(0,n.kt)("h2",{id:"parameters"},"Parameters"),(0,n.kt)("table",null,(0,n.kt)("thead",{parentName:"table"},(0,n.kt)("tr",{parentName:"thead"},(0,n.kt)("th",{parentName:"tr",align:null},"Parameter"),(0,n.kt)("th",{parentName:"tr",align: