V4 封装click动作

#-*- coding:UTF-8 -*- ''' Created on 2016-4-11 @author: poptest ''' import time from appium import webdriver class CommonFunction(object): #封装点击动作(文本类型,文本值) def clickAct(self,getType,getValue): if getType == "id": return dr.find_element_by_id(getV...
2016-04-11 21:55 | 阅读 9166 次 | 评论 0 条

V3 appium class代码(类,参数为变量)

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver class CommonFunction(object): #接收用户名、电话、地址 def addgoodsaddress(self,revName,revTel,revAddr): time.sleep(3) #点击头像、登陆进去 dr.find_element...
2016-04-09 20:44 | 阅读 9944 次 | 评论 0 条

V2 appium class代码(类,参数为定值)

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver class CommonFunction(object): def addgoodsaddress(self): time.sleep(3) #点击头像、登陆进去 dr.find_element_by_id("com.subject.zhongchou:id/ava...
2016-04-09 15:34 | 阅读 10068 次 | 评论 0 条

appium 线性代码

#-*- coding:UTF-8 -*- # ''' Created on 2016-4-8 @author: poptest ''' import time from appium import webdriver def addgoodsaddress(): time.sleep(3) #点击头像、登陆进去 dr.find_element_by_id("com.subject.zhongchou:id/avatar_img").click() time.sleep(2) #点击收货地址 dr.fi...
2016-04-08 17:05 | 阅读 10118 次 | 评论 0 条