function getExtensionId(context, extensionName): Promise<string>

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

This function soon will be removed to improve the developer experience! 😇

Parameters

ParameterTypeDescription
contextBrowserContextThe browser context.
extensionNamestringThe name of the extension, e.g., MetaMask.

Returns

Promise<string>

The extension ID.