1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["1167"],{4185(e,r,n){n.r(r),n.d(r,{metadata:()=>t,default:()=>o,frontMatter:()=>a,contentTitle:()=>d,toc:()=>p,assets:()=>i});var t=JSON.parse('{"id":"api/puppeteer.jshandle.getproperty","title":"JSHandle.getProperty() method","description":"getProperty(): Promise<HandleFor<T\\\\[K\\\\]>>","source":"@site/.generated-docs/next/api/puppeteer.jshandle.getproperty.md","sourceDirName":"api","slug":"/api/puppeteer.jshandle.getproperty","permalink":"/next/api/puppeteer.jshandle.getproperty","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"JSHandle.getProperty"},"sidebar":"api","previous":{"title":"JSHandle.getProperties","permalink":"/next/api/puppeteer.jshandle.getproperties"},"next":{"title":"JSHandle.jsonValue","permalink":"/next/api/puppeteer.jshandle.jsonvalue"}}'),s=n(74848),l=n(28453);let a={sidebar_label:"JSHandle.getProperty"},d="JSHandle.getProperty() method",i={},p=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2},{value:"Signature",id:"signature-1",level:3},{value:"Parameters",id:"parameters-1",level:2}];function h(e){let r={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,l.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.header,{children:(0,s.jsx)(r.h1,{id:"jshandlegetproperty-method",children:"JSHandle.getProperty() method"})}),"\n",(0,s.jsx)("h2",{id:"overload-1",children:"getProperty(): Promise<HandleFor<T[K]>>"}),"\n",(0,s.jsx)(r.p,{children:"Fetches a single property from the referenced object."}),"\n",(0,s.jsx)(r.h3,{id:"signature",children:"Signature"}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-typescript",children:"class JSHandle {\n getProperty<K extends keyof T>(\n propertyName: HandleOr<K>,\n ): Promise<HandleFor<T[K]>>;\n}\n"})}),"\n",(0,s.jsx)(r.h2,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Parameter"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Type"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Description"})})]})}),(0,s.jsx)("tbody",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"propertyName"})}),(0,s.jsx)("td",{children:(0,s.jsxs)(r.p,{children:[(0,s.jsx)(r.a,{href:"/next/api/puppeteer.handleor",children:"HandleOr"}),"<K>"]})}),(0,s.jsx)("td",{})]})})]}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,s.jsxs)(r.p,{children:["Promise<",(0,s.jsx)(r.a,{href:"/next/api/puppeteer.handlefor",children:"HandleFor"}),"<T[K]>>"]}),"\n",(0,s.jsx)("h2",{id:"overload-2",children:"getProperty(): Promise<JSHandle<unknown>>"}),"\n",(0,s.jsx)(r.h3,{id:"signature-1",children:"Signature"}),"\n",(0,s.jsx)(r.pre,{children:(0,s.jsx)(r.code,{className:"language-typescript",children:"class JSHandle {\n getProperty(propertyName: string): Promise<JSHandle<unknown>>;\n}\n"})}),"\n",(0,s.jsx)(r.h2,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Parameter"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Type"})}),(0,s.jsx)("th",{children:(0,s.jsx)(r.p,{children:"Description"})})]})}),(0,s.jsx)("tbody",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"propertyName"})}),(0,s.jsx)("td",{children:(0,s.jsx)(r.p,{children:"string"})}),(0,s.jsx)("td",{})]})})]}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,s.jsxs)(r.p,{children:["Promise<",(0,s.jsx)(r.a,{href:"/next/api/puppeteer.jshandle",children:"JSHandle"}),"<unknown>>"]})]})}function o(e={}){let{wrapper:r}={...(0,l.R)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},28453(e,r,n){n.d(r,{R:()=>a,x:()=>d});var t=n(96540);let s={},l=t.createContext(s);function a(e){let r=t.useContext(l);return t.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function d(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(l.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.