puppeteer/assets/js/be72130a.a3c2f6f8.js
2021-10-07 15:21:45 +00:00

1 line
4.4 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[41071],{3905:function(e,t,r){r.d(t,{Zo:function(){return m},kt:function(){return f}});var n=r(67294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var a=n.createContext({}),c=function(e){var t=n.useContext(a),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},m=function(e){var t=c(e.components);return n.createElement(a.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},l=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,a=e.parentName,m=u(e,["components","mdxType","originalType","parentName"]),l=c(r),f=o,d=l["".concat(a,".").concat(f)]||l[f]||s[f]||i;return r?n.createElement(d,p(p({ref:t},m),{},{components:r})):n.createElement(d,p({ref:t},m))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,p=new Array(i);p[0]=l;var u={};for(var a in t)hasOwnProperty.call(t,a)&&(u[a]=t[a]);u.originalType=e,u.mdxType="string"==typeof e?e:o,p[1]=u;for(var c=2;c<i;c++)p[c]=r[c];return n.createElement.apply(null,p)}return n.createElement.apply(null,r)}l.displayName="MDXCreateElement"},62817:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return u},contentTitle:function(){return a},metadata:function(){return c},toc:function(){return m},default:function(){return l}});var n=r(87462),o=r(63366),i=(r(67294),r(3905)),p=["components"],u={},a=void 0,c={unversionedId:"puppeteer.waittimeoutoptions.timeout",id:"version-10.1.0/puppeteer.waittimeoutoptions.timeout",isDocsHomePage:!1,title:"puppeteer.waittimeoutoptions.timeout",description:"Home &gt; puppeteer &gt; WaitTimeoutOptions &gt; timeout",source:"@site/versioned_docs/version-10.1.0/puppeteer.waittimeoutoptions.timeout.md",sourceDirName:".",slug:"/puppeteer.waittimeoutoptions.timeout",permalink:"/puppeteer/docs/puppeteer.waittimeoutoptions.timeout",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-10.1.0/puppeteer.waittimeoutoptions.timeout.md",version:"10.1.0",frontMatter:{}},m=[{value:"WaitTimeoutOptions.timeout property",id:"waittimeoutoptionstimeout-property",children:[]},{value:"Remarks",id:"remarks",children:[]}],s={toc:m};function l(e){var t=e.components,r=(0,o.Z)(e,p);return(0,i.kt)("wrapper",(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,(0,i.kt)("a",{parentName:"p",href:"/puppeteer/docs/index"},"Home")," ",">"," ",(0,i.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer"},"puppeteer")," ",">"," ",(0,i.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.waittimeoutoptions"},"WaitTimeoutOptions")," ",">"," ",(0,i.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.waittimeoutoptions.timeout"},"timeout")),(0,i.kt)("h2",{id:"waittimeoutoptionstimeout-property"},"WaitTimeoutOptions.timeout property"),(0,i.kt)("p",null,"Maximum wait time in milliseconds, defaults to 30 seconds, pass ",(0,i.kt)("inlineCode",{parentName:"p"},"0")," to disable the timeout."),(0,i.kt)("b",null,"Signature:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-typescript"},"timeout?: number;\n")),(0,i.kt)("h2",{id:"remarks"},"Remarks"),(0,i.kt)("p",null,"The default value can be changed by using the ",(0,i.kt)("a",{parentName:"p",href:"/puppeteer/docs/puppeteer.page.setdefaulttimeout"},"Page.setDefaultTimeout()")," method."))}l.isMDXComponent=!0}}]);