hsun 1 ano atrás
pai
commit
2057881c68
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      eta_report2img/main.py

+ 1 - 1
eta_report2img/main.py

@@ -85,7 +85,7 @@ def create_img_and_pdf(report_url, file_name, output_type=""):
     options.add_argument("disable-extensions")
     options.add_argument("headless")  # 无头浏览器模式
     s = Service(executable_path=chrome_drive_path)
-    driver = webdriver.Chrome(service=s, options=options)
+    driver = webdriver.Chrome(options=options)
 
     # 加载页面
     print("加载页面")