microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
63.92k stars 3.46k forks source link

How to avoid the CDP dection ? #30074

Closed peaceyourself closed 3 months ago

peaceyourself commented 3 months ago

How to pass the detection from: https://www.browserscan.net/bot-detection

can not pass the CDP: Chrome DevTools Protocol Detection

def test_dectect(browser_context):
    new_page = browser_context.new_page()
    new_page.goto("https://www.browserscan.net/bot-detection")
    print(new_page.title())
    time.sleep(10) # sleep 10 to see the detection result
    browser_context.close()
yury-s commented 3 months ago

Playwright's primary focus is on e2e testing, stealth mode is out of scope.