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