Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 878 Bytes

File metadata and controls

46 lines (32 loc) · 878 Bytes

polyfill.automation

Note

This plugin only applies to Chromium.

Tip

This plugin is enabled in the ⭐️ recommended.

Disable --enable-automation in Chromium.

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.automation()],
});
// ...

Advanced

Import

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

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

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