We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d7983b commit def06acCopy full SHA for def06ac
computers/playwright/playwright.py
@@ -101,7 +101,16 @@ def __enter__(self):
101
print("Creating session...")
102
self._playwright = sync_playwright().start()
103
self._browser = self._playwright.chromium.launch(
104
- args=["--disable-blink-features=AutomationControlled"],
+ args=[
105
+ "--disable-extensions",
106
+ "--disable-file-system",
107
+ "--disable-plugins",
108
+ "--disable-dev-shm-usage",
109
+ "--disable-background-networking",
110
+ "--disable-default-apps",
111
+ "--disable-sync",
112
+ # No '--no-sandbox' arg means the sandbox is on.
113
+ ],
114
headless=bool(os.environ.get("PLAYWRIGHT_HEADLESS", False)),
115
)
116
self._context = self._browser.new_context(
0 commit comments