opt-out from selenium anonymous data collection

This commit is contained in:
sebthom
2024-03-04 10:20:28 +01:00
parent 9caa7a7124
commit 5d1d095fcc

View File

@@ -51,6 +51,7 @@ CHROMIUM_OPTIONS = TypeVar('CHROMIUM_OPTIONS', bound = ChromiumOptions) # pylin
class SeleniumMixin: class SeleniumMixin:
def __init__(self) -> None: def __init__(self) -> None:
os.environ["SE_AVOID_STATS"] = "true" # see https://www.selenium.dev/documentation/selenium_manager/
self.browser_config:Final[BrowserConfig] = BrowserConfig() self.browser_config:Final[BrowserConfig] = BrowserConfig()
self.webdriver:WebDriver = None self.webdriver:WebDriver = None