This commit is contained in:
g1879 2020-06-16 18:08:52 +08:00
parent 4497ee9fec
commit de51562194
2 changed files with 4 additions and 2 deletions

View File

@ -197,4 +197,4 @@ def clean_folder(folder_path: str, ignore: list = None):
if f.is_file():
f.unlink()
elif f.is_dir():
shutil.rmtree(f, True)
shutil.rmtree(f, True)

View File

@ -5,6 +5,7 @@
@File : driver_page.py
"""
from glob import glob
# from time import sleep
from typing import Union, List, Any
from urllib.parse import quote
@ -12,7 +13,8 @@ from selenium.common.exceptions import NoAlertPresentException
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.webdriver.remote.webelement import WebElement
from .common import get_loc_from_str, avoid_duplicate_name
from .common import get_loc_from_str, avoid_duplicate_name # , clean_folder
# from .config import OptionsManager
from .driver_element import DriverElement, execute_driver_find