Note
This plugin only applies to Chromium.
Tip
This plugin is enabled in the ⭐️ recommended.
Set navigator.webdriver to false.
This plugin has no option.
Use the plugin.
import { chromium } from "playwright-ghost";
import plugins from "playwright-ghost/plugins";
const browser = await chromium.launch({
plugins: [plugins.polyfill.webdriver()],
});
// ...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()],
});
// ...