Skip to main content

getConfig

Overview

Use the getConfig command to get the browser config.

Usage

await browser.getConfig();

Usage Examples

it("some test", async ({ browser }) => {
const browserConfig = await browser.getConfig();
console.log(browserConfig.id);
// outputs: "chromeDesktop" – the name of the browser configuration specified in the config

const { browserName } = browserConfig.desiredCapabilities;
console.log(browserName);
// outputs: "chrome" – the actual name of the browser
});