puppeteer/assets/js/aaa67042.5e4e5a19.js
release-please[bot] cc95c085a2 deploy: 1014abc087
2023-11-29 13:34:30 +00:00

2 lines
3.3 KiB
JavaScript

/*! For license information please see aaa67042.5e4e5a19.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[28467],{13053:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>d,frontMatter:()=>n,metadata:()=>s,toc:()=>i});var a=r(85893),o=r(11151);const n={sidebar_label:"Locator.map"},p="Locator.map() method",s={id:"api/puppeteer.locator.map",title:"Locator.map() method",description:"Maps the locator using the provided mapper.",source:"@site/../docs/api/puppeteer.locator.map.md",sourceDirName:"api",slug:"/api/puppeteer.locator.map",permalink:"/next/api/puppeteer.locator.map",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Locator.map"},sidebar:"api",previous:{title:"Locator.hover",permalink:"/next/api/puppeteer.locator.hover"},next:{title:"Locator.race",permalink:"/next/api/puppeteer.locator.race"}},c={},i=[{value:"Signature:",id:"signature",level:4},{value:"Parameters",id:"parameters",level:2}];function l(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,o.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h1,{id:"locatormap-method",children:"Locator.map() method"}),"\n",(0,a.jsx)(t.p,{children:"Maps the locator using the provided mapper."}),"\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 Locator {\n map<To>(mapper: Mapper<T, To>): Locator<To>;\n}\n"})}),"\n",(0,a.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,a.jsxs)(t.table,{children:[(0,a.jsx)(t.thead,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.th,{children:"Parameter"}),(0,a.jsx)(t.th,{children:"Type"}),(0,a.jsx)(t.th,{children:"Description"})]})}),(0,a.jsx)(t.tbody,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.td,{children:"mapper"}),(0,a.jsxs)(t.td,{children:[(0,a.jsx)(t.a,{href:"/next/api/puppeteer.mapper",children:"Mapper"}),"<T, To>"]}),(0,a.jsx)(t.td,{})]})})]}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.a,{href:"/next/api/puppeteer.locator",children:"Locator"}),"<To>"]})]})}function d(e={}){const{wrapper:t}={...(0,o.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),o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,s=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,r){var a,n={},i=null,l=null;for(a in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(l=t.ref),t)p.call(t,a)&&!c.hasOwnProperty(a)&&(n[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===n[a]&&(n[a]=t[a]);return{$$typeof:o,type:e,key:i,ref:l,props:n,_owner:s.current}}t.Fragment=n,t.jsx=i,t.jsxs=i},85893:(e,t,r)=>{e.exports=r(75251)},11151:(e,t,r)=>{r.d(t,{Z:()=>s,a:()=>p});var a=r(67294);const o={},n=a.createContext(o);function p(e){const t=a.useContext(n);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:p(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]);