We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should the webdriver fix be set to undefined instead of false?
undefined
false
navigator.webdriver returns true in headless chrome, but in normal browsing it doesn't return false. It is undefined in the browser.
navigator.webdriver
true
It seems like setting it to false is actually a tip off that headless mode is being concealed, because it isn't false in a normal browser.
This seems to work:
await page.evaluateOnNewDocument(() => { Object.defineProperty(navigator, 'webdriver', { get: () => undefined, }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Should the webdriver fix be set to
undefined
instead offalse
?navigator.webdriver
returnstrue
in headless chrome, but in normal browsing it doesn't returnfalse
. It isundefined
in the browser.It seems like setting it to
false
is actually a tip off that headless mode is being concealed, because it isn'tfalse
in a normal browser.This seems to work:
The text was updated successfully, but these errors were encountered: