摘要:        
import time #字符串转化为时间戳 def str_to_timeStamp(str): '''字符串格式为:2017-11-24 17:30:00''' timeStruct = time.strptime(str, "%Y-%m-%d %H:%M:%S") timeStamp = int(time.mktime(timeStruct)) retur...    阅读全文
        posted @ 2018-04-23 17:56
cynthia59
阅读(258)
评论(0)
推荐(0)
            
        
        
摘要:        
from PIL import Image, ImageGrab def screenshot(imagefile): '''截取整个屏幕图片并保存到imagefile''' image = ImageGrab.grab() return image.save(imagefile) def screenshot_by_size(imagefile,x1,y1,x2,...    阅读全文
        posted @ 2018-04-23 17:53
cynthia59
阅读(210)
评论(0)
推荐(0)
            
        
        
摘要:        
由于目前测试的软件是C/S客户端的,没有办法愉快的用selenium或appium,只好用10年前学习的autoit加上新学了皮毛的python来解决,在此记录一下学习过程遇到的问题和处理方法。 问:为什么用python+autoit而不是单独使用autoit呢? 答:因为autoit没有现成可用的    阅读全文
        posted @ 2018-04-23 17:49
cynthia59
阅读(13883)
评论(1)
推荐(0)
                    
                
浙公网安备 33010602011771号