mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
5.2 KiB
JavaScript
2 lines
5.2 KiB
JavaScript
/*! For license information please see a0387ab8.ddae18e4.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[56361],{2892:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>i,contentTitle:()=>l,default:()=>h,frontMatter:()=>d,metadata:()=>a,toc:()=>o});var t=s(85893),n=s(11151);const d={sidebar_label:"InstalledBrowser"},l="InstalledBrowser class",a={id:"browsers-api/browsers.installedbrowser",title:"InstalledBrowser class",description:"Signature:",source:"@site/versioned_docs/version-22.2.0/browsers-api/browsers.installedbrowser.md",sourceDirName:"browsers-api",slug:"/browsers-api/browsers.installedbrowser",permalink:"/browsers-api/browsers.installedbrowser",draft:!1,unlisted:!1,tags:[],version:"22.2.0",frontMatter:{sidebar_label:"InstalledBrowser"},sidebar:"browsersApi",previous:{title:"install_1",permalink:"/browsers-api/browsers.install_1"},next:{title:"InstalledBrowser.readMetadata",permalink:"/browsers-api/browsers.installedbrowser.readmetadata"}},i={},o=[{value:"Signature:",id:"signature",level:4},{value:"Remarks",id:"remarks",level:2},{value:"Properties",id:"properties",level:2},{value:"Methods",id:"methods",level:2}];function c(e){const r={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,n.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"installedbrowser-class",children:"InstalledBrowser class"}),"\n",(0,t.jsx)(r.h4,{id:"signature",children:"Signature:"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-typescript",children:"export declare class InstalledBrowser\n"})}),"\n",(0,t.jsx)(r.h2,{id:"remarks",children:"Remarks"}),"\n",(0,t.jsxs)(r.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,t.jsx)(r.code,{children:"InstalledBrowser"})," class."]}),"\n",(0,t.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Property"}),(0,t.jsx)(r.th,{children:"Modifiers"}),(0,t.jsx)(r.th,{children:"Type"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsxs)(r.tbody,{children:[(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:"browser"}),(0,t.jsx)(r.td,{}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.a,{href:"/browsers-api/browsers.browser",children:"Browser"})}),(0,t.jsx)(r.td,{})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:"buildId"}),(0,t.jsx)(r.td,{}),(0,t.jsx)(r.td,{children:"string"}),(0,t.jsx)(r.td,{})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:"executablePath"}),(0,t.jsx)(r.td,{children:(0,t.jsx)("code",{children:"readonly"})}),(0,t.jsx)(r.td,{children:"string"}),(0,t.jsx)(r.td,{})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:"path"}),(0,t.jsx)(r.td,{children:(0,t.jsx)("code",{children:"readonly"})}),(0,t.jsx)(r.td,{children:"string"}),(0,t.jsxs)(r.td,{children:["Path to the root of the installation folder. Use ",(0,t.jsx)(r.a,{href:"/browsers-api/browsers.computeexecutablepath",children:"computeExecutablePath()"})," to get the path to the executable binary."]})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:"platform"}),(0,t.jsx)(r.td,{}),(0,t.jsx)(r.td,{children:(0,t.jsx)(r.a,{href:"/browsers-api/browsers.browserplatform",children:"BrowserPlatform"})}),(0,t.jsx)(r.td,{})]})]})]}),"\n",(0,t.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,t.jsxs)(r.table,{children:[(0,t.jsx)(r.thead,{children:(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.th,{children:"Method"}),(0,t.jsx)(r.th,{children:"Modifiers"}),(0,t.jsx)(r.th,{children:"Description"})]})}),(0,t.jsxs)(r.tbody,{children:[(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.a,{href:"/browsers-api/browsers.installedbrowser.readmetadata",children:"readMetadata()"})}),(0,t.jsx)(r.td,{}),(0,t.jsx)(r.td,{})]}),(0,t.jsxs)(r.tr,{children:[(0,t.jsx)(r.td,{children:(0,t.jsx)(r.a,{href:"/browsers-api/browsers.installedbrowser.writemetadata",children:"writeMetadata(metadata)"})}),(0,t.jsx)(r.td,{}),(0,t.jsx)(r.td,{})]})]})]})]})}function h(e={}){const{wrapper:r}={...(0,n.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},75251:(e,r,s)=>{var t=s(67294),n=Symbol.for("react.element"),d=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(e,r,s){var t,d={},o=null,c=null;for(t in void 0!==s&&(o=""+s),void 0!==r.key&&(o=""+r.key),void 0!==r.ref&&(c=r.ref),r)l.call(r,t)&&!i.hasOwnProperty(t)&&(d[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===d[t]&&(d[t]=r[t]);return{$$typeof:n,type:e,key:o,ref:c,props:d,_owner:a.current}}r.Fragment=d,r.jsx=o,r.jsxs=o},85893:(e,r,s)=>{e.exports=s(75251)},11151:(e,r,s)=>{s.d(r,{Z:()=>a,a:()=>l});var t=s(67294);const n={},d=t.createContext(n);function l(e){const r=t.useContext(d);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function a(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:l(e.components),t.createElement(d.Provider,{value:r},e.children)}}}]); |