Appium common properties and commands

from appium Import the webdriver 
Import Time, the traceback

desired_caps = {}

desired_caps [ ' PlatformName '] = 'the Android' platform name, operating system
desired_caps [ ' platformVersion '] = '. 9' version
desired_caps [ ' deviceName '] = 'Test' present test name
# desired_caps [ ' App '] = R & lt 'computer installation package path' is mounted to the phone application
desired_caps [ 'appPackage'] = ' com.baidu.searchbox' package names desired_caps [ 'appActivity'] = ' . SplashActivity' application entry desired_caps [ 'unicodeKeyboard'] = True set input phone original input desired_caps [ 'resetKeyboard '] = True desired_caps Moresheth'] = True



Software reset is not
desired_caps [ 'newCommandTimeout'] = 6000 time-out period, to prevent a communication timeout in seconds
# Enable RPC Remote IP: port number / WD / Hub
Driver = webdriver.Remote ( 'HTTP: // localhost: 4723 / WD / Hub', desired_caps)

driver.quit ()

View package and Activity
App has been installed to the phone
  cmd input command: adb shell dumpsys Activity recents findstr "the Intent = {" | findstr "cmp = {"
App not installed
  cmd into the aapt directory and enter the command: aapt.exe dump badging app path



Guess you like

Origin www.cnblogs.com/ndd2016/p/11985911.html
Recommended