> ## Documentation Index
> Fetch the complete documentation index at: https://docs.synpress.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: getExtensionId()

```ts theme={null}
function getExtensionId(context, extensionName): Promise<string>
```

Returns the extension ID for the given extension name. The ID is fetched from the `chrome://extensions` page.

<Tip>
  This function soon will be removed to improve the developer experience! 😇
</Tip>

## Parameters

| Parameter       | Type             | Description                                  |
| :-------------- | :--------------- | :------------------------------------------- |
| `context`       | `BrowserContext` | The browser context.                         |
| `extensionName` | `string`         | The name of the extension, e.g., `MetaMask`. |

## Returns

`Promise`\<`string`>

The extension ID.
