--- sidebar_label: Locator.map --- # Locator.map() method Maps the locator using the provided mapper. #### Signature: ```typescript class Locator { map(mapper: Mapper): Locator; } ``` ## Parameters | Parameter | Type | Description | | --------- | -------------------------------------------- | ----------- | | mapper | [Mapper](./puppeteer.mapper.md)<T, To> | | **Returns:** [Locator](./puppeteer.locator.md)<To>