Source symbols: packages/playwright-core/src/client/locator.ts
Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.
- Revision: main@4cd8608744bf4d18c9f23578c3cf4a1cd1862b2d · 2026-07-20T11:02:36Z
- Declarations: 17
- Referenced calls: 112
Declared symbols
LocatorOptions— exported type at line 38Locator— exported class at line 46; referencesconstructor,Error,stringify,_inspect,_timeout,monotonicTime,async,waitForSelector,fromNullable,task,dispose,_equals,page,boundingBox,_withElement,check,click,dblclick,dispatchEvent,dragTolocator— const at line 62; referencesError,stringifylocator— const at line 69; referencesError,stringify,_inspect,_timeout,monotonicTime,async,waitForSelector,fromNullable,task,disposetimeout— const at line 83; references_timeoutdeadline— const at line 84; referencesmonotonicTime,async,waitForSelector,fromNullable,Error,task,disposeresult— const at line 87; referenceswaitForSelectorhandle— const at line 88; referencesfromNullable,Error,task,monotonicTime,disposestyle— const at line 164; referencescssObjectToString,_highlight,DisposableStub,hideHighlight,_hideHighlightmask— const at line 327; references_withElement,screenshotresult— const at line 332; referencesariaSnapshot,_timeoutFrameLocator— exported class at line 424; referencesconstructor,locator,isString,Locator,Error,getByTestId,getByTestIdSelector,testIdAttributeName,getByAltText,getByAltTextSelector,getByLabel,getByLabelSelector,getByPlaceholder,getByPlaceholderSelector,getByText,getByTextSelector,getByTitle,getByTitleSelector,getByRole,getByRoleSelector_testIdAttributeName— let at line 490testIdAttributeName— exported function at line 492setTestIdAttribute— exported function at line 496cssObjectToString— function at line 500; referencesentries,startsWith,replace,toLowerCase,joinproperty— const at line 502; referencesstartsWith,replace,toLowerCase,join
Imported modules
util@isomorphic/locatorGenerators@isomorphic/locatorUtils@isomorphic/stringUtils@isomorphic/rtti@isomorphic/time./elementHandle./jsHandle./disposable./timeoutSettings./frame./types../../types/structs../../types/types./channels
File-level call references
constructor— line 51Error— line 64stringify— line 65_inspect— line 79_timeout— line 83monotonicTime— line 84async— line 86waitForSelector— line 87fromNullable— line 88task— line 92dispose— line 94_equals— line 99page— line 103boundingBox— line 107_withElement— line 108check— line 111click— line 115dblclick— line 119dispatchEvent— line 123dragTo— line 127dragAndDrop— line 128drop— line 134_drop— line 135evaluate— line 139eval— line 143evaluateHandle— line 147fill— line 150clear— line 154_wrapApiCall— line 155_highlight— line 158highlight— line 163cssObjectToString— line 164DisposableStub— line 166hideHighlight— line 166_hideHighlight— line 170locator— line 173isString— line 174Locator— line 175getByTestId— line 181getByTestIdSelector— line 182testIdAttributeName— line 182getByAltText— line 185getByAltTextSelector— line 186getByLabel— line 189getByLabelSelector— line 190getByPlaceholder— line 193getByPlaceholderSelector— line 194getByText— line 197getByTextSelector— line 198getByTitle— line 201getByTitleSelector— line 202getByRole— line 205getByRoleSelector— line 206frameLocator— line 209FrameLocator— line 210elementHandle— line 217elementHandles— line 221contentFrame— line 225describe— line 229description— line 233locatorCustomDescription— line 234first— line 237last— line 241nth— line 245and— line 249focus— line 261blur— line 265count— line 269_queryCount— line 270normalize— line 273resolveSelector— line 274getAttribute— line 278hover— line 282innerHTML— line 286innerText— line 290inputValue— line 294isChecked— line 298isDisabled— line 302isEditable— line 306isEnabled— line 310isHidden— line 314isVisible— line 318press— line 322screenshot— line 326ariaSnapshot— line 331scrollIntoViewIfNeeded— line 336selectOption— line 340selectText— line 344setChecked— line 348uncheck— line 352setInputFiles— line 355tap— line 359textContent— line 363type— line 367pressSequentially— line 371all— line 379Array— line 380allInnerTexts— line 383allTextContents— line 387waitFor— line 391waitForFunction— line 398String— line 401serializeArgument— line 403_expect— line 408toString— line 416asLocatorDescription— line 420owner— line 469entries— line 501startsWith— line 502replace— line 502toLowerCase— line 502join— line 504
Source: packages/playwright-core/src/client/locator.ts