puppeteer/assets/js/9e653b9d.c675119c.js
2021-10-07 15:21:45 +00:00

1 line
4.0 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[21557],{3905:function(e,r,t){t.d(r,{Zo:function(){return l},kt:function(){return m}});var n=t(67294);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?u(Object(t),!0).forEach((function(r){o(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function a(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=n.createContext({}),i=function(e){var r=n.useContext(c),t=r;return e&&(t="function"==typeof e?e(r):p(p({},r),e)),t},l=function(e){var r=i(e.components);return n.createElement(c.Provider,{value:r},e.children)},s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,u=e.originalType,c=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),y=i(t),m=o,f=y["".concat(c,".").concat(m)]||y[m]||s[m]||u;return t?n.createElement(f,p(p({ref:r},l),{},{components:t})):n.createElement(f,p({ref:r},l))}));function m(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var u=t.length,p=new Array(u);p[0]=y;var a={};for(var c in r)hasOwnProperty.call(r,c)&&(a[c]=r[c]);a.originalType=e,a.mdxType="string"==typeof e?e:o,p[1]=a;for(var i=2;i<u;i++)p[i]=t[i];return n.createElement.apply(null,p)}return n.createElement.apply(null,t)}y.displayName="MDXCreateElement"},48048:function(e,r,t){t.r(r),t.d(r,{frontMatter:function(){return a},contentTitle:function(){return c},metadata:function(){return i},toc:function(){return l},default:function(){return y}});var n=t(87462),o=t(63366),u=(t(67294),t(3905)),p=["components"],a={},c=void 0,i={unversionedId:"puppeteer.customqueryhandler.queryone",id:"version-9.1.1/puppeteer.customqueryhandler.queryone",isDocsHomePage:!1,title:"puppeteer.customqueryhandler.queryone",description:"Home &gt; puppeteer &gt; CustomQueryHandler &gt; queryOne",source:"@site/versioned_docs/version-9.1.1/puppeteer.customqueryhandler.queryone.md",sourceDirName:".",slug:"/puppeteer.customqueryhandler.queryone",permalink:"/puppeteer/docs/9.1.1/puppeteer.customqueryhandler.queryone",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-9.1.1/puppeteer.customqueryhandler.queryone.md",version:"9.1.1",frontMatter:{}},l=[{value:"CustomQueryHandler.queryOne property",id:"customqueryhandlerqueryone-property",children:[]}],s={toc:l};function y(e){var r=e.components,t=(0,o.Z)(e,p);return(0,u.kt)("wrapper",(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,u.kt)("p",null,(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/index"},"Home")," ",">"," ",(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer"},"puppeteer")," ",">"," ",(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.customqueryhandler"},"CustomQueryHandler")," ",">"," ",(0,u.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.customqueryhandler.queryone"},"queryOne")),(0,u.kt)("h2",{id:"customqueryhandlerqueryone-property"},"CustomQueryHandler.queryOne property"),(0,u.kt)("b",null,"Signature:"),(0,u.kt)("pre",null,(0,u.kt)("code",{parentName:"pre",className:"language-typescript"},"queryOne?: (element: Element | Document, selector: string) => Element | null;\n")))}y.isMDXComponent=!0}}]);