环境: - 电脑:win 7 64位
- python 3.5
- PyCharm Community Edition 2017.1.1 x64
- 模拟器:逍遥模拟器 android 5.1.1
- appium -v 1.14.2
- appium-desktop-Setup-1.5.0-ia32.exe
- jdk version "1.8.0_05"
- nodejs : 10.16.3
以下是代码: - from appium import webdriver
-
- desired_caps={}
- desired_caps['platformName']='Android'
- desired_caps['platformVersion']='5.1.1'
- desired_caps['deviceName']='127.0.0.1:21503'
-
- desired_caps['app']=r'C:\Users\Administrator\Desktop\kaoyan3.1.0.apk'
- desired_caps['appActivity']='com.tal.kaoyan.ui.activity.SplashActivity'
- desired_caps['appPackage']='com.tal.kaoyan'
- desired_caps['noReset']='False'
-
- driver=webdriver.Remote('http://localhost:4723/wd/hub',desired_caps)
复制代码以cmd启动 appium -a 127.0.0.1 -p 4723,运行pycharm,启动模拟器上APP,报错的信息:
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Failed to launch Appium Settings app: Condition unmet after 5191 ms. Timing out - 奇怪的是使用appium-desktop-Setup-1.5.0-ia32.exe启动appium,运行pycharm,启动模拟器上APP,却不报错,找不到原因,求大神分析一下!
|