摘要: from appium import webdriverfrom appium.webdriver.common.touch_action import TouchActionfrom appium.webdriver.common.multi_action import MultiActionfr 阅读全文
posted @ 2019-06-08 16:14 Test挖掘者 阅读(3453) 评论(0) 推荐(1) 编辑
摘要: 方法一: 阅读全文
posted @ 2019-06-08 16:11 Test挖掘者 阅读(2393) 评论(0) 推荐(0) 编辑
摘要: import osimport time as tdef start_appium(port = 4723,udid="4871660c"): a = os.popen("netstat -ano | findstr '%s'"%port) t.sleep(2) t1 = a.read() prin 阅读全文
posted @ 2019-06-08 16:10 Test挖掘者 阅读(525) 评论(0) 推荐(0) 编辑
摘要: import osfrom appium import webdriver# 安装app,为了方便,把app放到当前脚本同一目录os.system("adb install sina.apk")#获取项目的根目录路径path_file = os.path.abspath(os.path.join(o 阅读全文
posted @ 2019-06-08 16:09 Test挖掘者 阅读(276) 评论(0) 推荐(0) 编辑
摘要: from appium import webdriverfrom appium.webdriver.common.touch_action import TouchActionfrom time import sleepdesired_caps = { 'platformName': 'Androi 阅读全文
posted @ 2019-06-08 16:07 Test挖掘者 阅读(666) 评论(0) 推荐(0) 编辑
摘要: from appium.webdriver.common.touch_action import TouchActionfrom appium import webdriverimport timeimport osdesired_caps = { "platformName":"Android", 阅读全文
posted @ 2019-06-08 16:06 Test挖掘者 阅读(630) 评论(0) 推荐(0) 编辑
摘要: import osimport time as tadb = 'adb shell input tap 400 500'os.system(adb)t.sleep(5)class keyevent(): """常用的keyevent事件""" KEYCODE_HOME = 3 #home键 KEYC 阅读全文
posted @ 2019-06-08 16:05 Test挖掘者 阅读(583) 评论(0) 推荐(0) 编辑
摘要: from appium import webdriverfrom selenium.webdriver.support.wait import WebDriverWaitfrom selenium.webdriver.support import expected_conditions as ECf 阅读全文
posted @ 2019-06-08 16:04 Test挖掘者 阅读(972) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8"""参考博客链接:https://www.cnblogs.com/yoyoketang/p/7843819.html"""from appium import webdriverfrom selenium.webdriver.support.ui import WebD 阅读全文
posted @ 2019-06-08 16:02 Test挖掘者 阅读(241) 评论(0) 推荐(0) 编辑
摘要: # coding:utf-8from appium import webdriverfrom time import sleepdesired_caps = { 'platformName': 'Android', 'deviceName': '127.0.0.1:62001', 'platform 阅读全文
posted @ 2019-06-08 16:01 Test挖掘者 阅读(326) 评论(0) 推荐(0) 编辑