摘要: #coding=utf-8from appium import webdriverfrom time import sleepimport osfrom selenium.webdriver.common.by import ByPATH = lambda p: os.path.abspath( o 阅读全文
posted @ 2017-04-23 19:01 看我美不美 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 1.由于Appium继承了Selenium,所以Selenium胡定位方式都可以使用。通过sdk->\tools 下的uiautomatorviewer工具获取id、name、classname等 2.uiautomator:driver.find_elements_by_android_uiaut 阅读全文
posted @ 2017-04-23 17:22 看我美不美 阅读(895) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from appium import webdriver# 使用正则表达式筛选设备 idimport re# 使用time.sleep(xx)函数进行等待from time import sleep# 使用 os 模块调用命令import os # 测 阅读全文
posted @ 2017-04-23 14:00 看我美不美 阅读(948) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-from appium import webdriver# 使用正则表达式筛选设备 idimport re# 使用time.sleep(xx)函数进行等待from time import sleep# 使用 os 模块调用命令import os # 测试 阅读全文
posted @ 2017-04-23 13:20 看我美不美 阅读(4115) 评论(1) 推荐(0) 编辑
摘要: 区别:Selenium是web端的自动化测试工具,Appium是移动端的自动化测试工具 联系:在Python的appium包中实际继承了Selenium,在测试过程中将移动端的页面元素当作是网页来处理, 所以Selenium的定位方法也可以使用 阅读全文
posted @ 2017-04-23 12:56 看我美不美 阅读(5128) 评论(0) 推荐(0) 编辑