摘要: import xlrd import os class Excel(object): '''定义一个excel类''' def __init__(self): '初始化基本信息' self.excelPath = r'F:\Test_framework\data' def readExcel(self,excelName,Shee... 阅读全文
posted @ 2018-10-24 10:08 nester_liz 阅读(552) 评论(0) 推荐(0) 编辑
摘要: ;聚焦到输入窗口ControlFocus("打开","","Edit1");等待10sWinWait("[CLASS:#32770]","",10);输入文件地址ControlSetText("打开","","Edit1","F:\test_liz\screenshot\jt1.jpg")Sleep 阅读全文
posted @ 2018-10-17 15:04 nester_liz 阅读(208) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriver import time driver = webdriver.Chrome() driver.get("https://www.baidu.com") #隐式等待 driver.implicitly_wait(3) #刷新页面 driver.refresh() #设置休眠 time.sleep(3) driver.get('http... 阅读全文
posted @ 2018-10-15 10:51 nester_liz 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 行高line-height 边框颜色border-color 边框宽度border-width 边框样式border-style:dashed(虚线), solid(实线),dotted(小点线) 背景颜色background-color 内边距padding与padding-left注意设置的顺序 外边距margin 文字倾斜效果font-style: italic(倾斜) 背景图片backg... 阅读全文
posted @ 2018-09-28 17:08 nester_liz 阅读(72) 评论(0) 推荐(0) 编辑
摘要: css的属性 color: 设置文本元素的字体颜色 top: 控制元素顶部的位置 text-align: 使用这个元素将文本左对齐,居中或右对齐 letter-spacing: 能够设置字母之间的间距 font-style: 设置斜体文本 list-style: 改变列表中列表项的外观 background-image: 在元素后面放置一个图像 padding: 在元素的边缘和它的内容之间需要有... 阅读全文
posted @ 2018-09-27 18:02 nester_liz 阅读(111) 评论(0) 推荐(0) 编辑
摘要: from sanitize import sanitize #创建一个继承list属性的类AthleteList class AthleteList(list): def __init__ (self, a_name, a_dob=None, a_times=[]): list.__init__([]) self.name = a_name ... 阅读全文
posted @ 2018-09-08 11:22 nester_liz 阅读(168) 评论(0) 推荐(0) 编辑
摘要: from sanitize import sanitize #格式化数据 class Athlete: #创建一个类 def __init__ (self, a_name, a_dob=None, a_times=[]): #初始化参数 self.name = a_name self.dob = a_dob ... 阅读全文
posted @ 2018-09-06 17:19 nester_liz 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #定义sanitize函数格式化数据 def sanitize(time_string): try: if '-' in time_string: splitter = '-' elif ':' in time_string: splitter = ':' ... 阅读全文
posted @ 2018-09-05 11:31 nester_liz 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #定义sanitize函数格式化数据 def sanitize(time_string): try: if '-' in time_string: splitter = '-' elif ':' in time_string: splitter = ':' ... 阅读全文
posted @ 2018-09-05 11:01 nester_liz 阅读(264) 评论(0) 推荐(0) 编辑
摘要: split() #处理字符串 通过特定元素分割字符串并分别指给 不同变量 ValueErro #值错误IOError #文件错误pow(2, 3) #2的3次方math.sqrt(x) #根号xisinstance() #检查数据类型isinstance('abc', Iterable) #判断'abc'是否是可迭代的s.lower() #将字符串... 阅读全文
posted @ 2018-08-26 13:43 nester_liz 阅读(109) 评论(0) 推荐(0) 编辑