puppeteer/assets/js/f9fd996f.edfb9d07.js

2 lines
3.0 KiB
JavaScript
Raw Normal View History

/*! For license information please see f9fd996f.edfb9d07.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[93678],{49846:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>l,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>p});var i=t(85893),s=t(11151);const r={sidebar_label:"ElementHandle.isVisible"},l="ElementHandle.isVisible() method",a={id:"api/puppeteer.elementhandle.isvisible",title:"ElementHandle.isVisible() method",description:"Checks if an element is visible using the same mechanism as ElementHandle.waitForSelector().",source:"@site/versioned_docs/version-21.5.2/api/puppeteer.elementhandle.isvisible.md",sourceDirName:"api",slug:"/api/puppeteer.elementhandle.isvisible",permalink:"/api/puppeteer.elementhandle.isvisible",draft:!1,unlisted:!1,tags:[],version:"21.5.2",frontMatter:{sidebar_label:"ElementHandle.isVisible"},sidebar:"api",previous:{title:"ElementHandle.isIntersectingViewport",permalink:"/api/puppeteer.elementhandle.isintersectingviewport"},next:{title:"ElementHandle.press",permalink:"/api/puppeteer.elementhandle.press"}},o={},p=[{value:"Signature:",id:"signature",level:4}];function c(e){const n={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"elementhandleisvisible-method",children:"ElementHandle.isVisible() method"}),"\n",(0,i.jsxs)(n.p,{children:["Checks if an element is visible using the same mechanism as ",(0,i.jsx)(n.a,{href:"/api/puppeteer.elementhandle.waitforselector",children:"ElementHandle.waitForSelector()"}),"."]}),"\n",(0,i.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"class ElementHandle {\n isVisible(): Promise<boolean>;\n}\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,i.jsx)(n.p,{children:"Promise<boolean>"})]})}function d(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},75251:(e,n,t)=>{var i=t(67294),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function p(e,n,t){var i,r={},p=null,c=null;for(i in void 0!==t&&(p=""+t),void 0!==n.key&&(p=""+n.key),void 0!==n.ref&&(c=n.ref),n)l.call(n,i)&&!o.hasOwnProperty(i)&&(r[i]=n[i]);if(e&&e.defaultProps)for(i in n=e.defaultProps)void 0===r[i]&&(r[i]=n[i]);return{$$typeof:s,type:e,key:p,ref:c,props:r,_owner:a.current}}n.Fragment=r,n.jsx=p,n.jsxs=p},85893:(e,n,t)=>{e.exports=t(75251)},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>l});var i=t(67294);const s={},r=i.createContext(s);function l(e){const n=i.useContext(r);return i.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(s):e.components||s:l(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]);