hsun 1 年之前
父節點
當前提交
2057881c68
共有 1 個文件被更改,包括 1 次插入1 次删除
  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("加载页面")