"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[83515],{3905:(e,t,r)=>{r.d(t,{Zo:()=>m,kt:()=>f});vara=r(67294);functionn(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}functiono(e,t){varr=Object.keys(e);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}returnr}functioni(e){for(vart=1;t<arguments.length;t++){varr=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}returne}functionp(e,t){if(null==e)return{};varr,a,n=function(e,t){if(null==e)return{};varr,a,n={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||(n[r]=e[r]);returnn}(e,t);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}returnn}varl=a.createContext({}),u=function(e){vart=a.useContext(l),r=t;returne&&(r="function"==typeofe?e(t):i(i({},t),e)),r},m=function(e){vart=u(e.components);returna.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){vart=e.children;returna.createElement(a.Fragment,{},t)}},c=a.forwardRef((function(e,t){varr=e.components,n=e.mdxType,o=e.originalType,l=e.parentName,m=p(e,["components","mdxType","originalType","parentName"]),c=u(r),f=n,d=c["".concat(l,".").concat(f)]||c[f]||s[f]||o;returnr?a.createElement(d,i(i({ref:t},m),{},{components:r})):a.createElement(d,i({ref:t},m))}));functionf(e,t){varr=arguments,n=t&&t.mdxType;if("string"==typeofe||n){varo=r.length,i=newArray(o);i[0]=c;varp={};for(varlint)hasOwnProperty.call(t,l)&&(p[l]=t[l]);p.originalType=e,p.mdxType="string"==typeofe?e:n,i[1]=p;for(varu=2;u<o;u++)i[u]=r[u];returna.createElement.apply(null,i)}returna.createElement.apply(null,r)}c.displayName="MDXCreateElement"},78398:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>s,frontMatter:()=>o,metadata:()=>p,toc:()=>u});vara=r(87462),n=(r(67294),r(3905));consto={sidebar_label:"Page.waitForTimeout"},i="Page.waitForTimeout() method",p={unversionedId:"api/puppeteer.page.waitfortimeout",id:"api/puppeteer.page.waitfortimeout",title:"Page.waitForTimeout() method",description:"Causes your script to wait for the given number of milliseconds.",source:"@site/../docs/api/puppeteer.page.waitfortimeout.md",sourceDirName:"api",slug:"/api/puppeteer.page.waitfortimeout",permalink:"/next/api/puppeteer.page.waitfortimeout",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Page.waitForTimeout"},sidebar:"sidebar",previous:{title:"Page.waitForSelector",permalink:"/next/api/puppeteer.page.waitforselector"},next:{title:"Page.waitForXPath",permalink:"/next/api/puppeteer.page.waitforxpath"}},l={},u=[{value:"Parameters",id:"parameters",level:2},{value:"Remarks",id:"remarks",level:2},{value:"Example",id:"example",level:2}],m={toc:u};functions(e){let{components:t,...r}=e;return(0,n.kt)("wrapper",(0,a.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("h1",{id:"pagewaitfortimeout-method"},"Page.waitForTimeout() method"),(0,n.kt)("p",null,"Causes your script to wait for the given number of milliseconds."),(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 waitForTimeout(milliseconds: number): 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:null},"Type"),(0,n.kt)("th",{parentName:"tr",align:null},"Description"))),(0,n.kt)("tbody",{parentName:"table"