Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 867 Bytes

File metadata and controls

46 lines (32 loc) · 867 Bytes

polyfill.webdriver

Note

This plugin only applies to Chromium.

Tip

This plugin is enabled in the ⭐️ recommended.

Set navigator.webdriver to false.

Options

This plugin has no option.

Example

Use the plugin.

import { chromium } from "playwright-ghost";
import plugins from "playwright-ghost/plugins";

const browser = await chromium.launch({
  plugins: [plugins.polyfill.webdriver()],
});
// ...

Advanced

Import

If you want to import only this plugin, you can use the "playwright-ghost/plugins/polyfill/webdriver" path in the import.

import { chromium } from "playwright-ghost";
import polyfillWebdriverPlugin from "playwright-ghost/plugins/polyfill/webdriver";

const browser = await chromium.launch({
  plugins: [polyfillWebdriverPlugin()],
});
// ...