摘要:
#!/usr/bin/python3 # coding=utf-8 import logging import os.path import time class Logger(object): def __init__(self, logger): """指定保存日志的文件路径,日志级别,以及调用 阅读全文
摘要:
rows = driver.find_elements_by_css_selector('div.wrapper>ul.list>li') logger.info(len(rows)) 阅读全文
摘要:
@staticmethod def unzip_file(failed_file): zip_file = zipfile.ZipFile(failed_file) print(zip_file) if os.path.isdir(failed_file[0:-20]): pass else: os 阅读全文
摘要:
for link in driver.find_elements_by_css_selector("tr:nth-child(1) > td.taskStatus use"): assert_status = link.get_attribute('xlink:href') print(assert 阅读全文