Преглед на файлове

update:删除"--no-sandbox"无效参数

dongzhaorui преди 2 години
родител
ревизия
58be3c704d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      A数据处理/site_monitor/utils/webdriver/playwright_driver.py

+ 1 - 1
A数据处理/site_monitor/utils/webdriver/playwright_driver.py

@@ -94,7 +94,7 @@ class PlaywrightDriver(WebDriver):
         self.driver = sync_playwright().start()
         self.browser = getattr(self.driver, self._driver_type).launch(
             headless=self._headless,
-            args=["--no-sandbox"],
+            # args=["--no-sandbox"],
             proxy=proxy,
             executable_path=self._executable_path,
             downloads_path=self._download_path,