"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[91154],{3905:(e,n,t)=>{t.d(n,{Zo:()=>d,kt:()=>s});varr=t(67294);functiono(e,n,t){returnnine?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}functiona(e,n){vart=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){returnObject.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}returnt}functionl(e){for(varn=1;n<arguments.length;n++){vart=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}returne}functioni(e,n){if(null==e)return{};vart,r,o=function(e,n){if(null==e)return{};vart,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);returno}(e,n);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}returno}varp=r.createContext({}),u=function(e){varn=r.useContext(p),t=n;returne&&(t="function"==typeofe?e(n):l(l({},n),e)),t},d=function(e){varn=u(e.components);returnr.createElement(p.Provider,{value:n},e.children)},m={inlineCode:"code",wrapper:function(e){varn=e.children;returnr.createElement(r.Fragment,{},n)}},c=r.forwardRef((function(e,n){vart=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),c=u(t),s=o,b=c["".concat(p,".").concat(s)]||c[s]||m[s]||a;returnt?r.createElement(b,l(l({ref:n},d),{},{components:t})):r.createElement(b,l({ref:n},d))}));functions(e,n){vart=arguments,o=n&&n.mdxType;if("string"==typeofe||o){vara=t.length,l=newArray(a);l[0]=c;vari={};for(varpinn)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i.mdxType="string"==typeofe?e:o,l[1]=i;for(varu=2;u<a;u++)l[u]=t[u];returnr.createElement.apply(null,l)}returnr.createElement.apply(null,t)}c.displayName="MDXCreateElement"},62715:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>a,metadata:()=>i,toc:()=>u});varr=t(87462),o=(t(67294),t(3905));consta={sidebar_label:"ElementHandle.boundingBox"},l="ElementHandle.boundingBox() method",i={unversionedId:"api/puppeteer.elementhandle.boundingbox",id:"version-17.1.1/api/puppeteer.elementhandle.boundingbox",title:"ElementHandle.boundingBox() method",description:"This method returns the bounding box of the element (relative to the main frame), or null if the element is not visible.",source:"@site/versioned_docs/version-17.1.1/api/puppeteer.elementhandle.boundingbox.md",sourceDirName:"api",slug:"/api/puppeteer.elementhandle.boundingbox",permalink:"/api/puppeteer.elementhandle.boundingbox",draft:!1,tags:[],version:"17.1.1",frontMatter:{sidebar_label:"ElementHandle.boundingBox"},sidebar:"sidebar",previous:{title:"ElementHandle.asElement",permalink:"/api/puppeteer.elementhandle.aselement"},next:{title:"ElementHandle.boxModel",permalink:"/api/puppeteer.elementhandle.boxmodel"}},p={},u=[],d={toc:u};functionm(e){let{components:n,...t}=e;return(0,o.kt)("wrapper",(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"elementhandleboundingbox-method"},"ElementHandle.boundingBox() method"),(0,o.kt)("p",null,"This method returns the bounding box of the element (relative to the main frame), or ",(0,o.kt)("inlineCode",{parentName:"p"},"null")," if the element is not visible."),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Signature:")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"class ElementHandle {\n boundingBox(): Promise<BoundingBox | null>;\n}\n")),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Returns:")),(0,o.kt)("p",null,"Promise","<",(0,o.kt)("a",{parentName:"p",href:"/api/puppeteer.boundingbox"},"BoundingBox")," ","|"," null",">"))}m.isMD