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