摘要: #使元素高亮def highlight_element(driver, element): driver.execute_script("arguments[0].setAttribute('style', arguments[1]);", element,"background:green; bo 阅读全文
posted @ 2020-07-31 17:36 皓空星辰 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #日志类import osimport loggingcurrent_path = os.path.dirname(__file__)log_path = os.path.join(current_path, '../log/testpython.log')class logUtil: def __ 阅读全文
posted @ 2020-07-31 17:07 皓空星辰 阅读(175) 评论(0) 推荐(0) 编辑
摘要: config.ini文件信息 [default]excel_path = ../data/testcases.xlsx[email]username=tingting.yang@juneyaokec.compassword=ytt123456..port=81 #读取配置文件类import conf 阅读全文
posted @ 2020-07-31 17:00 皓空星辰 阅读(196) 评论(0) 推荐(0) 编辑