Teaching video reference b Station courses , This article is a learning record
( Free wool , It's time to collect , Bobbins ~)
Zero foundation entry mobile automation test ——Appium Frame video ( Black horse programmer ) Broadcast address
open cmd, Input :adb connect 127.0.0.1:7555
Input :adb devices
Show :List of devices attached;127.0.0.1:7555 device The device is successfully connected
Input :adb shell dumpsys window | findstr mCurrentFocus
// An highlighted block
from appium import webdriver
import time
desired_caps = dict()
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '6.0.1'//mumu Simulator - Set up - About tablets -Android edition
desired_caps['deviceName'] = '127.0.0.1:7555'// Device number
desired_caps['appPackage'] = 'com.android.settings'// Package name
desired_caps['appActivity'] = 'com.android.settings.Settings'// Interface name
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)//4723 by appium Set the port number
time.sleep(5)
driver.quit()
driver.start_activity(“com.android.gallery3d”, “com.android.gallery3d.app.GalleryActivity”)
driver.current_package
driver.current_activity
driver.close_app() # Back to the table ,driver still
driver.quit() # immediate withdrawal driver
driver.install_app(app_path)
driver.remove_app(“ Package name ”)
if driver.is_app_installed()
driver.background_app(seconds)
named Python for VSCode The pl
The project foreground and bac