Skip to content

[Bug]: --disable-blink-features=AutomationControlled dont work on new versions #167

@JustRomanBZK

Description

@JustRomanBZK

Checklist before reporting

  • I have searched for similar issues and didn't find a duplicate.
  • I have updated to the latest version of Patchright to verify the issue still exists.
  • I have verified that this issue does not occur when using Playwright directly.

Patchright Version

1.58.1

Operating System

Windows

Bug Description

--disable-blink-features=AutomationControlled
Should be set by default

Test file (self-contained)

Code:


if __name__ == '__main__':
    with sync_playwright() as p:
        launch_kwargs = {
            "headless": False,
             "args": [
            #"--disable-blink-features=AutomationControlled",
        ],
        }

        browser = p.chromium.launch(**launch_kwargs)
        context = browser.new_context()
        page = context.new_page()
        page.goto("https://bot.sannysoft.com/")
        print(page.title())
        page.wait_for_timeout(30000)
        browser.close()

Result:

Image

With enabled arg:

Image

Expected Behavior

No response

Actual Behavior

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingunconfirmednot reproduced yet

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions