puppeteer/assets/js/7752b4e2.ef2aa90b.js

2 lines
4.2 KiB
JavaScript
Raw Normal View History

/*! For license information please see 7752b4e2.ef2aa90b.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4855],{42224:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>o,metadata:()=>a,toc:()=>i});var r=n(85893),t=n(11151);const o={sidebar_label:"ConsoleMessage.(constructor)"},c="ConsoleMessage.(constructor)",a={id:"api/puppeteer.consolemessage._constructor_",title:"ConsoleMessage.(constructor)",description:"Constructs a new instance of the ConsoleMessage class",source:"@site/../docs/api/puppeteer.consolemessage._constructor_.md",sourceDirName:"api",slug:"/api/puppeteer.consolemessage._constructor_",permalink:"/next/api/puppeteer.consolemessage._constructor_",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"ConsoleMessage.(constructor)"},sidebar:"api",previous:{title:"ConsoleMessage",permalink:"/next/api/puppeteer.consolemessage"},next:{title:"ConsoleMessage.args",permalink:"/next/api/puppeteer.consolemessage.args"}},l={},i=[{value:"Signature:",id:"signature",level:4},{value:"Parameters",id:"parameters",level:2}];function p(e){const s={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h1,{id:"consolemessageconstructor",children:"ConsoleMessage.(constructor)"}),"\n",(0,r.jsxs)(s.p,{children:["Constructs a new instance of the ",(0,r.jsx)(s.code,{children:"ConsoleMessage"})," class"]}),"\n",(0,r.jsx)(s.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-typescript",children:"class ConsoleMessage {\n constructor(\n type: ConsoleMessageType,\n text: string,\n args: JSHandle[],\n stackTraceLocations: ConsoleMessageLocation[]\n );\n}\n"})}),"\n",(0,r.jsx)(s.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:(0,r.jsx)(s.p,{children:"Parameter"})}),(0,r.jsx)("th",{children:(0,r.jsx)(s.p,{children:"Type"})}),(0,r.jsx)("th",{children:(0,r.jsx)(s.p,{children:"Description"})})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)(s.p,{children:"type"})}),(0,r.jsx)("td",{children:(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"/next/api/puppeteer.consolemessagetype",children:"ConsoleMessageType"})})}),(0,r.jsx)("td",{})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)(s.p,{children:"text"})}),(0,r.jsx)("td",{children:(0,r.jsx)(s.p,{children:"string"})}),(0,r.jsx)("td",{})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)(s.p,{children:"args"})}),(0,r.jsx)("td",{children:(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.a,{href:"/next/api/puppeteer.jshandle",children:"JSHandle"}),"[]"]})}),(0,r.jsx)("td",{})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)(s.p,{children:"stackTraceLocations"})}),(0,r.jsx)("td",{children:(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.a,{href:"/next/api/puppeteer.consolemessagelocation",children:"ConsoleMessageLocation"}),"[]"]})}),(0,r.jsx)("td",{})]})]})]})]})}function d(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},75251:(e,s,n)=>{var r=n(67294),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function i(e,s,n){var r,o={},i=null,p=null;for(r in void 0!==n&&(i=""+n),void 0!==s.key&&(i=""+s.key),void 0!==s.ref&&(p=s.ref),s)c.call(s,r)&&!l.hasOwnProperty(r)&&(o[r]=s[r]);if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:t,type:e,key:i,ref:p,props:o,_owner:a.current}}s.Fragment=o,s.jsx=i,s.jsxs=i},85893:(e,s,n)=>{e.exports=n(75251)},11151:(e,s,n)=>{n.d(s,{Z:()=>a,a:()=>c});var r=n(67294);const t={},o=r.createContext(t);function c(e){const s=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableP