随笔分类 - appium
摘要:例子: # coding=utf-8import unittest class iBer(unittest.TestCase): @classmethod def setUpClass(cls): logger=public.log() desired_caps = { 'platformName'
阅读全文
摘要:有人说加这个 最后 大神说 在appium哪里就可以设置了 对,第一个不勾选就不会安装了【经理】[Java]大连●Messi_Z(726862194) 15:54:10把这些东西全去掉就好了
阅读全文
摘要:键盘怎么操作啊 【总监】[python]北京●Aib(2925725083) 2018/1/4 17:22:10adb shell input keyevent 按键id adb shell input text "要输入的文字" 。(网上看的) 。 http://blog.sina.com.cn/
阅读全文
摘要:1、获取 content-desc 的方法为 get_attribute("name") ,而且还不能保证返回的一定是 content-desc (content-desc 为空时会返回 text 属性值)2、get_attribute 方法不是我们在 uiautomatorviewer 看到的所有
阅读全文
摘要:用法 driver.press_ keycode(‘4’) 参数查找url:https://www.cnblogs.com/larack/p/4223465.html
阅读全文
摘要:参考文档:http://blog.csdn.net/kaka1121/article/details/53301517 在写脚本的过程中,总是遇到标签没有ID或者name等类似的唯一识别属性,为了能识别到这些对象,只能通过xpath了。可是sdk自带的uiautomatorviewer并不能获得xp
阅读全文
摘要:1.id定位 driver.find_element_by_id("这里是resource-id") 2.name定位 (新版本的appium 1.7 已经没有这个定位方法了) driver.find_element_by_name("这里是text") 3.class定位 driver.find_
阅读全文
摘要:1.要在手机上输入字符, 要屏蔽手机键盘 于是可以想办法屏蔽软键盘,只需在desired_caps{}设置里面加两个参数 unicodeKeyboard是使用unicode编码方式发送字符串resetKeyboard是将键盘隐藏起来 后记: 这里是参考上海悠悠的教程,如果 输入的是中文 记得上面加上
阅读全文
摘要:1,滑动屏幕 driver.swipe(start_x=720, start_y=1000, end_x=0, end_y=1000,duration=1000) ,注意开始坐标不能是最大值 2,获取屏幕坐标 # 获取屏幕的sizesize = driver.get_window_size()# 屏
阅读全文
摘要:1,(自带的)启动模拟器提示 Starting emulator for AVD 'AVD_for_Galaxy_Nexus' emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure
阅读全文

浙公网安备 33010602011771号