"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[69270],{3905:(t,e,r)=>{r.d(e,{Zo:()=>u,kt:()=>m});vara=r(67294);functionn(t,e,r){returneint?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}functionl(t,e){varr=Object.keys(t);if(Object.getOwnPropertySymbols){vara=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){returnObject.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}returnr}functiono(t){for(vare=1;e<arguments.length;e++){varr=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}returnt}functionp(t,e){if(null==t)return{};varr,a,n=function(t,e){if(null==t)return{};varr,a,n={},l=Object.keys(t);for(a=0;a<l.length;a++)r=l[a],e.indexOf(r)>=0||(n[r]=t[r]);returnn}(t,e);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(t);for(a=0;a<l.length;a++)r=l[a],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}returnn}vari=a.createContext({}),c=function(t){vare=a.useContext(i),r=e;returnt&&(r="function"==typeoft?t(e):o(o({},e),t)),r},u=function(t){vare=c(t.components);returna.createElement(i.Provider,{value:e},t.children)},s={inlineCode:"code",wrapper:function(t){vare=t.children;returna.createElement(a.Fragment,{},e)}},d=a.forwardRef((function(t,e){varr=t.components,n=t.mdxType,l=t.originalType,i=t.parentName,u=p(t,["components","mdxType","originalType","parentName"]),d=c(r),m=n,f=d["".concat(i,".").concat(m)]||d[m]||s[m]||l;returnr?a.createElement(f,o(o({ref:e},u),{},{components:r})):a.createElement(f,o({ref:e},u))}));functionm(t,e){varr=arguments,n=e&&e.mdxType;if("string"==typeoft||n){varl=r.length,o=newArray(l);o[0]=d;varp={};for(variine)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p.mdxType="string"==typeoft?t:n,o[1]=p;for(varc=2;c<l;c++)o[c]=r[c];returna.createElement.apply(null,o)}returna.createElement.apply(null,r)}d.displayName="MDXCreateElement"},5542:(t,e,r)=>{r.r(e),r.d(e,{assets:()=>c,contentTitle:()=>p,default:()=>d,frontMatter:()=>o,metadata:()=>i,toc:()=>u});r(67294);vara=r(3905);functionn(){returnn=Object.assign||function(t){for(vare=1;e<arguments.length;e++){varr=arguments[e];for(varainr)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}returnt},n.apply(this,arguments)}functionl(t,e){if(null==t)return{};varr,a,n=function(t,e){if(null==t)return{};varr,a,n={},l=Object.keys(t);for(a=0;a<l.length;a++)r=l[a],e.indexOf(r)>=0||(n[r]=t[r]);returnn}(t,e);if(Object.getOwnPropertySymbols){varl=Object.getOwnPropertySymbols(t);for(a=0;a<l.length;a++)r=l[a],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}returnn}consto={sidebar_label:"Locator"},p="Locator class",i={unversionedId:"api/puppeteer.locator",id:"api/puppeteer.locator",title:"Locator class",description:"Locators describe a strategy of locating elements and performing an action on them. If the action fails because the element is not ready for the action, the whole operation is retried. Various preconditions for a successful action are checked automatically.",source:"@site/../docs/api/puppeteer.locator.md",sourceDirName:"api",slug:"/api/puppeteer.locator",permalink:"/next/api/puppeteer.locator",draft:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Locator"},sidebar:"api",previous:{title:"LaunchOptions",permalink:"/next/api/puppeteer.launchoptions"},next:{title:"Locator.click",permalink:"/next/api/puppeteer.locator.click"}},c={},u=[{value:"Signature:",id:"signature",level:4},{value:"Methods",id:"methods",level:2}],s={toc:u};functiond(t){var{components:e}=t,r=l(t,["components"]);return(0,a.kt)("wrapper",n({},s,r,{components:e,mdxType:"MDXLayout"}),(0,a.kt)("h1",n({},{id:"locator-class"}),"Locator class"),(0,a.kt)("p",null,"Locatorsdescribeastrategyoflocatingelementsandperforminganaction