目录大纲
1. 脚本内启动其他app
driver.start_activity(appPackage,appActivity)
# This sample code uses the Appium python client
# pip install Appium-Python-Client
# Then you can paste this into a file and simply run with Python
from appium import webdriver
import time
caps = {
}
caps["platformName"] = "Android"
caps["platformVersion"] = "5.1.1"
caps["deviceName"] = "127.0.0.1:62001"
caps["appPackage"] = "com.android.settings"
caps["appActivity"] = "com.android.settings.Settings"
driver = webdriver.Remote("http://localhost:4723/wd/hub", caps

本文介绍了如何在PyCharm中使用Appium进行移动端自动化测试,包括启动和关闭应用、使用uiautomatorviewer分析元素、滑动事件、拖拽事件以及手指轻敲和移动操作。详细讲解了不同方式的元素定位和手势模拟,如swipe、scroll、drag_and_drop等。
最低0.47元/天 解锁文章
457

被折叠的 条评论
为什么被折叠?



