dic_path = "****"
channel = "****"
channel_count = 0
pic_count = 0
swip_end = False
file_name1 = os.path.join(dic_path,channel+str(channel_count)+"_"+str(pic_count)+".png")
take_screenShot(driver, file_name1, pic_count)
pic_count = pic_count + 1
while not swip_end:
swipe_up(driver, x, y)
time.sleep(2)
file_name2 = os.path.join(dic_path,channel+str(channel_count)+"_"+str(pic_count)+".png")
take_screenShot(driver, file_name2, pic_count)
pic_count = pic_count + 1
similary = cmppic(file_name1,file_name2)
if similary > 0.97:
swip_end = True
os.remove(file_name2)
file_name1 = file_name2
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/280822.html
標籤:Android
