mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-04 21:18:01 +08:00
微调
This commit is contained in:
parent
ebe3177b0c
commit
19329c4235
@ -434,7 +434,8 @@ class DriverElement(DrissionElement):
|
||||
name = filename or self.tag
|
||||
path = Path(path).absolute()
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
name = get_available_file_name(str(path), f'{name}.png')
|
||||
name = f'{name}.png' if not name.endswith('.png') else name
|
||||
name = get_available_file_name(str(path), name)
|
||||
|
||||
# 等待元素加载完成
|
||||
if self.tag == 'img':
|
||||
|
Loading…
Reference in New Issue
Block a user