puppeteer/assets/js/d07c19df.fbaccae0.js
release-please[bot] d5d4bf3f0e deploy: 75f170b26d
2024-04-11 16:53:35 +00:00

2 lines
3.8 KiB
JavaScript

/*! For license information please see d07c19df.fbaccae0.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[41536],{81853:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>d,frontMatter:()=>l,metadata:()=>a,toc:()=>o});var r=t(85893),i=t(11151);const l={sidebar_label:"ElementHandle.clickablePoint"},s="ElementHandle.clickablePoint() method",a={id:"api/puppeteer.elementhandle.clickablepoint",title:"ElementHandle.clickablePoint() method",description:"Returns the middle point within an element unless a specific offset is provided.",source:"@site/versioned_docs/version-22.6.4/api/puppeteer.elementhandle.clickablepoint.md",sourceDirName:"api",slug:"/api/puppeteer.elementhandle.clickablepoint",permalink:"/api/puppeteer.elementhandle.clickablepoint",draft:!1,unlisted:!1,tags:[],version:"22.6.4",frontMatter:{sidebar_label:"ElementHandle.clickablePoint"},sidebar:"api",previous:{title:"ElementHandle.click",permalink:"/api/puppeteer.elementhandle.click"},next:{title:"ElementHandle.contentFrame",permalink:"/api/puppeteer.elementhandle.contentframe"}},c={},o=[{value:"Signature:",id:"signature",level:4},{value:"Parameters",id:"parameters",level:2}];function p(e){const n={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h1,{id:"elementhandleclickablepoint-method",children:"ElementHandle.clickablePoint() method"}),"\n",(0,r.jsx)(n.p,{children:"Returns the middle point within an element unless a specific offset is provided."}),"\n",(0,r.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-typescript",children:"class ElementHandle {\n clickablePoint(offset?: Offset): Promise<Point>;\n}\n"})}),"\n",(0,r.jsx)(n.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)(n.p,{children:"Parameter"})}),(0,r.jsx)("th",{children:(0,r.jsx)(n.p,{children:"Type"})}),(0,r.jsx)("th",{children:(0,r.jsx)(n.p,{children:"Description"})})]})}),(0,r.jsx)("tbody",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)(n.p,{children:"offset"})}),(0,r.jsx)("td",{children:(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/api/puppeteer.offset",children:"Offset"})})}),(0,r.jsx)("td",{children:(0,r.jsx)(n.p,{children:(0,r.jsx)(n.em,{children:"(Optional)"})})})]})})]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,r.jsxs)(n.p,{children:["Promise<",(0,r.jsx)(n.a,{href:"/api/puppeteer.point",children:"Point"}),">"]})]})}function d(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},75251:(e,n,t)=>{var r=t(67294),i=Symbol.for("react.element"),l=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function o(e,n,t){var r,l={},o=null,p=null;for(r in void 0!==t&&(o=""+t),void 0!==n.key&&(o=""+n.key),void 0!==n.ref&&(p=n.ref),n)s.call(n,r)&&!c.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===l[r]&&(l[r]=n[r]);return{$$typeof:i,type:e,key:o,ref:p,props:l,_owner:a.current}}n.Fragment=l,n.jsx=o,n.jsxs=o},85893:(e,n,t)=>{e.exports=t(75251)},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>s});var r=t(67294);const i={},l=r.createContext(i);function s(e){const n=r.useContext(l);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(l.Provider,{value:n},e.children)}}}]);