mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
/*! For license information please see a6564d9a.49f798e4.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[15601],{79741:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>i,contentTitle:()=>s,default:()=>u,frontMatter:()=>p,metadata:()=>o,toc:()=>c});var a=r(85893),n=r(11151);const p={sidebar_label:"Page.target"},s="Page.target() method",o={id:"api/puppeteer.page.target",title:"Page.target() method",description:"A target this page was created from.",source:"@site/../docs/api/puppeteer.page.target.md",sourceDirName:"api",slug:"/api/puppeteer.page.target",permalink:"/next/api/puppeteer.page.target",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Page.target"},sidebar:"api",previous:{title:"Page.tap",permalink:"/next/api/puppeteer.page.tap"},next:{title:"Page.title",permalink:"/next/api/puppeteer.page.title"}},i={},c=[{value:"Signature:",id:"signature",level:4}];function l(e){const t={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,n.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"pagetarget-method",children:"Page.target() method"}),"\n",(0,a.jsx)(t.p,{children:"A target this page was created from."}),"\n",(0,a.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-typescript",children:"class Page {\n abstract target(): Target;\n}\n"})}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"/next/api/puppeteer.target",children:"Target"})})]})}function u(e={}){const{wrapper:t}={...(0,n.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},75251:(e,t,r)=>{var a=r(67294),n=Symbol.for("react.element"),p=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var a,p={},c=null,l=null;for(a in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,a)&&!i.hasOwnProperty(a)&&(p[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===p[a]&&(p[a]=t[a]);return{$$typeof:n,type:e,key:c,ref:l,props:p,_owner:o.current}}t.Fragment=p,t.jsx=c,t.jsxs=c},85893:(e,t,r)=>{e.exports=r(75251)},11151:(e,t,r)=>{r.d(t,{Z:()=>o,a:()=>s});var a=r(67294);const n={},p=a.createContext(n);function s(e){const t=a.useContext(p);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),a.createElement(p.Provider,{value:t},e.children)}}}]); |