hsun hace 1 año
padre
commit
2057881c68
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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("加载页面")