puppeteer/assets/js/c6eafce4.4c08de1d.js

2 lines
2.7 KiB
JavaScript
Raw Normal View History

/*! For license information please see c6eafce4.4c08de1d.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[98770],{94763:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>s,contentTitle:()=>a,default:()=>u,frontMatter:()=>c,metadata:()=>l,toc:()=>i});var r=o(85893),n=o(11151);const c={sidebar_label:"Locator.clone"},a="Locator.clone() method",l={id:"api/puppeteer.locator.clone",title:"Locator.clone() method",description:"Clones the locator.",source:"@site/versioned_docs/version-21.5.2/api/puppeteer.locator.clone.md",sourceDirName:"api",slug:"/api/puppeteer.locator.clone",permalink:"/api/puppeteer.locator.clone",draft:!1,unlisted:!1,tags:[],version:"21.5.2",frontMatter:{sidebar_label:"Locator.clone"},sidebar:"api",previous:{title:"Locator.click",permalink:"/api/puppeteer.locator.click"},next:{title:"Locator.fill",permalink:"/api/puppeteer.locator.fill"}},s={},i=[{value:"Signature:",id:"signature",level:4}];function p(e){const t={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,n.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"locatorclone-method",children:"Locator.clone() method"}),"\n",(0,r.jsx)(t.p,{children:"Clones the locator."}),"\n",(0,r.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-typescript",children:"class Locator {\n clone(): Locator<T>;\n}\n"})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.a,{href:"/api/puppeteer.locator",children:"Locator"}),"<T>"]})]})}function u(e={}){const{wrapper:t}={...(0,n.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(p,{...e})}):p(e)}},75251:(e,t,o)=>{var r=o(67294),n=Symbol.for("react.element"),c=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,o){var r,c={},i=null,p=null;for(r in void 0!==o&&(i=""+o),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(p=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(c[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===c[r]&&(c[r]=t[r]);return{$$typeof:n,type:e,key:i,ref:p,props:c,_owner:l.current}}t.Fragment=c,t.jsx=i,t.jsxs=i},85893:(e,t,o)=>{e.exports=o(75251)},11151:(e,t,o)=>{o.d(t,{Z:()=>l,a:()=>a});var r=o(67294);const n={},c=r.createContext(n);function a(e){const t=r.useContext(c);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),r.createElement(c.Provider,{value:t},e.children)}}}]);