随笔分类 - Appium
摘要:from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from appium.webdriver.commo
阅读全文
摘要:import time from appium.webdriver import Remote """可使用uc浏览器小工具uc-devtools来查看H5混合页面""" caps = { "platformName": "Android", "appPackage": "com.lemon.lem
阅读全文
摘要:一、基于坐标的点击 1 startx = 792 2 endx = 900 3 starty = 49 4 endy = 137 5 center_x = (startx + starty) / 2 6 center_y = (endx + endy) / 2 7 8 # 基于坐标的点击, 9 #
阅读全文
摘要:1 import time 2 3 from appium.webdriver import Remote 4 from selenium.webdriver import ActionChains 5 from selenium.webdriver.common.actions.mouse_but
阅读全文
摘要:1 class BasePage(): 2 def __init__(self, driver): 3 self.driver = driver 4 5 def swipe_left(self): 6 """从右到左滑动""" 7 size = self.driver.get_window_rect
阅读全文
摘要:1 from appium.webdriver import Remote 2 3 4 caps = { 5 "platformName": "Android", 6 "appPackage": "com.lemon.lemonban", 7 "appActivity": ".activity.We
阅读全文
摘要:https://blog.csdn.net/chushujin/article/details/109016922
阅读全文
摘要:一、Appium 元素定位方法总结: https://www.cnblogs.com/cnkemi/p/9180525.html 二、注意:由于高版本Appium(从1.22.0开始)的服务和元素查看器分离,所以还需要下载Appium Inspector。否则打开Appium Server GUI,
阅读全文
摘要:appPackage和appActivity 进行appium自动化测试非常重要的两个参数,我们所测试的APP不同,这两个参数肯定也是不一样的。那如何快速的获取这APP的这两个参数呢?我这里介绍五个方法。 方法一(最简单有效的方法) 通过cmd命令,前提是先打开手机中你要获取包名的APP 1. ad
阅读全文
摘要:大致步骤如下: 1、先安装JDK,并配置环境变量 2、安装node.js 3、Android SDK 4、Appium-Server:下载appium-desktop即可 5、Appium-Python-Client (编写测试脚本用) 6、终端:下载雷电安卓模拟器 详细步骤如下: 1、安装JDK:
阅读全文