随笔分类 -  Appium

摘要:这个问题比较常见,而且不被重视。大多数人的解决思路是根据坐标,把它点掉。 如下图,根本无法定位出“你好”这个元素: 最后的解决办法是: 在desired_caps={}中增加, desired_caps['automationName']='uiautomator2' 这样该问题就会被解决。 顺便提 阅读全文
posted @ 2018-06-15 18:18 AAA五金批发王建军 阅读(1862) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/paulwinflo/p/4742529.html http://www.cnblogs.com/meitian/p/6103391.html https://www.cnblogs.com/yufeihlf/p/5707929.html https: 阅读全文
posted @ 2018-06-15 17:25 AAA五金批发王建军 阅读(222) 评论(0) 推荐(0) 编辑
摘要:https://testerhome.com/topics/3711 元素定位方法: find_element_by_android_uiautomator ,使用uiautomator定位,后面参数更改即可: UiSelector().text 根据text属性进行定位 self.driver.f 阅读全文
posted @ 2018-05-31 10:54 AAA五金批发王建军 阅读(320) 评论(0) 推荐(0) 编辑
摘要:import time import os from appium import webdriver from selenium.webdriver.support.ui import WebDriverWait from swipe import swipeLeft #调用向左滑动的方法 import unittest PATH=lambda p:os.path.abspath(os.... 阅读全文
posted @ 2018-05-07 14:32 AAA五金批发王建军 阅读(324) 评论(0) 推荐(0) 编辑
摘要:weditor 一个元素定位工具,并可实现通过wifi连接移动端进行定位。 https://github.com/openatx/uiautomator2 python安装方式:pip install --pre weditor 然后执行:python -m uiautomator2 init安装完 阅读全文
posted @ 2018-03-15 09:04 AAA五金批发王建军 阅读(2524) 评论(0) 推荐(1) 编辑
摘要:一、什么是Appium Appium是一个开源、跨平台的测试框架,可以用来测试原生及混合的移动端应用。Appium支持IOS、Android及FirefoxOS平台。Appium使用WebDriver的json wire协议,来驱动Apple系统的UIAutomation库、Android系统的UI 阅读全文
posted @ 2017-09-18 15:36 AAA五金批发王建军 阅读(302) 评论(0) 推荐(0) 编辑
摘要:要解决的问题:appium在androidV7.0系统上运行时报错 Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.settings without first uninstalling.] 原因分析:a 阅读全文
posted @ 2017-09-13 14:09 AAA五金批发王建军 阅读(4799) 评论(0) 推荐(0) 编辑
摘要:Appium+python自动化8-Appium Python API 前言: Appium Python API全集,不知道哪个大神整理的,这里贴出来分享给大家。 1.contexts contexts(self): Returns the contexts within the current 阅读全文
posted @ 2017-09-13 11:18 AAA五金批发王建军 阅读(368) 评论(0) 推荐(0) 编辑
摘要:如果持续集成测试的话,会使得每次运行完的图片重复 所以我的思路是,每次在执行前,先进行图片清除~ 将这个方法放在setup里面 只需要每次将新的screenshot自己备份,清除完全留给代码来做! 或者将备份的截图,打包,邮件发送出来,也交给代码去做 阅读全文
posted @ 2017-09-12 17:51 AAA五金批发王建军 阅读(496) 评论(0) 推荐(0) 编辑
摘要:一、装饰器 1.用setUp与setUpClass区别 setup():每个测试case运行前运行 teardown():每个测试case运行完后执行 setUpClass():必须使用@classmethod 装饰器,所有case运行前只运行一次 tearDownClass():必须使用@clas 阅读全文
posted @ 2017-09-12 17:11 AAA五金批发王建军 阅读(1912) 评论(0) 推荐(0) 编辑
摘要:一、常用识别元素的工具 uiautomator:Android SDK自带的一个工具,在tools目录下 monitor:Android SDK自带的一个工具,在tools目录下 Appium Inspector:Appium自带的一个功能,只有mac下可以使用该功能 下面是用monitor抓取到的 阅读全文
posted @ 2017-09-12 14:34 AAA五金批发王建军 阅读(288) 评论(0) 推荐(0) 编辑
摘要:*前提是你已经安装好python,以及python的pip工具 *安装python请自行百度教程~ 1.安装安卓sdk 安装包:http://tools.android-studio.org/index.php/sdk *如果不需要虚拟机,则不需要安装这一步! 你需要科学上网,或者查找到国内的 An 阅读全文
posted @ 2017-09-12 13:03 AAA五金批发王建军 阅读(386) 评论(0) 推荐(0) 编辑
摘要:当使用在cmd窗口调用adb shell命令的时候 提示如下: adb server version (31) doesn't match this client (39); killing...error: could not install *smartsocket* listener: can 阅读全文
posted @ 2017-09-12 09:34 AAA五金批发王建军 阅读(1532) 评论(0) 推荐(0) 编辑
摘要:方法一:http://www.apkbus.com/forum.php?mod=viewthread&tid=240851 方法二:http://www.androiddevtools.cn/ 阅读全文
posted @ 2017-09-11 10:03 AAA五金批发王建军 阅读(708) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示