# 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,os import pytest from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC time.sleep(3) # Returns abs path relative to this file and not cwd PATH = lambda p: os.path.abspath( os.path.join(os.path.dirname(__file__), p) ) class LoginTest(): def setUp(self): caps = {} caps["platformName"] = "Android" caps["platformVersion"] = "6.0.1" caps["deviceName"] = "2cbaea23" caps["app"] = "/Downloads/lazyfit2-bugly-debug(1).apk" caps["appPackage"] = "com.lryj.lazyfit" caps["appActivity"] = "com.lryj.lazyfit.ui.bootload.BootLoadActivity" self
使用appium实现登录功能的自动化
最新推荐文章于 2024-05-05 18:00:00 发布